Commit d0ced41f authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2563 from cremno/printf-cast-variables-to-expected-type

printf: cast variables to the expected type
parents 3979dd02 bdf6ce34
......@@ -2715,7 +2715,7 @@ codedump(mrb_state *mrb, mrb_irep *irep)
int32_t line;
if (!irep) return;
printf("irep %p nregs=%d nlocals=%d pools=%d syms=%d reps=%d\n", irep,
printf("irep %p nregs=%d nlocals=%d pools=%d syms=%d reps=%d\n", (void*)irep,
irep->nregs, irep->nlocals, (int)irep->plen, (int)irep->slen, (int)irep->rlen);
for (i = 0; i < (int)irep->ilen; i++) {
......
......@@ -6366,7 +6366,7 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
break;
default:
printf("node type: %d (0x%x)\n", (int)n, (int)n);
printf("node type: %d (0x%x)\n", n, (unsigned)n);
break;
}
#endif
......
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