mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5169 from shuujii/fix-size-of-local-variable-array-in-struct-dumped-file
Fix size of local variable array in struct dumped file
This commit is contained in:
+1
-1
@@ -1052,7 +1052,7 @@ dump_irep_struct(mrb_state *mrb, const mrb_irep *irep, uint8_t flags, FILE *fp,
|
||||
/* dump lv */
|
||||
if (irep->lv) {
|
||||
len=irep->nlocals;
|
||||
fprintf(fp, "static const mrb_sym %s_lv_%d[%d] = {", name, n, len);
|
||||
fprintf(fp, "static const mrb_sym %s_lv_%d[%d] = {", name, n, len-1);
|
||||
for (i=0; i+1<len; i++) {
|
||||
fprintf(fp, "%uU, ", irep->lv[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user