Add `U` prefix for `mrb_sym` dump.

Since `%u` of `mrb_sym` may be its MSB turned on.
parent b9dfd043
......@@ -1078,7 +1078,7 @@ dump_irep_struct(mrb_state *mrb, const mrb_irep *irep, uint8_t flags, FILE *fp,
len=irep->nlocals;
fprintf(fp, "static const mrb_sym %s_lv_%d[%d] = {", name, n, len);
for (i=0; i+1<len; i++) {
fprintf(fp, "%u, ", irep->lv[i]);
fprintf(fp, "%uU, ", irep->lv[i]);
}
fputs("};\n", fp);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment