diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-02 22:59:07 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-02 23:04:12 +0900 |
| commit | 0be5b266b668a6219b440c80bfcff692e02d2097 (patch) | |
| tree | 1cc0b0db3a11176b980e50c3f7f2d737b45d1f22 /src/codedump.c | |
| parent | ac51a58683f0e02e7b29a4475f226715efa530a9 (diff) | |
| download | mruby-0be5b266b668a6219b440c80bfcff692e02d2097.tar.gz mruby-0be5b266b668a6219b440c80bfcff692e02d2097.zip | |
format '%p' expects argument of type 'void *'; #5107
Diffstat (limited to 'src/codedump.c')
| -rw-r--r-- | src/codedump.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/codedump.c b/src/codedump.c index 3f0801929..dcc196973 100644 --- a/src/codedump.c +++ b/src/codedump.c @@ -346,13 +346,13 @@ codedump(mrb_state *mrb, const mrb_irep *irep) print_lv_a(mrb, irep, a); break; CASE(OP_LAMBDA, BB); - printf("OP_LAMBDA\tR%d\tI(%d:%p)\n", a, b, irep->reps[b]); + printf("OP_LAMBDA\tR%d\tI(%d:%p)\n", a, b, (void*)irep->reps[b]); break; CASE(OP_BLOCK, BB); - printf("OP_BLOCK\tR%d\tI(%d:%p)\n", a, b, irep->reps[b]); + printf("OP_BLOCK\tR%d\tI(%d:%p)\n", a, b, (void*)irep->reps[b]); break; CASE(OP_METHOD, BB); - printf("OP_METHOD\tR%d\tI(%d:%p)\n", a, b, irep->reps[b]); + printf("OP_METHOD\tR%d\tI(%d:%p)\n", a, b, (void*)irep->reps[b]); break; CASE(OP_RANGE_INC, B); printf("OP_RANGE_INC\tR%d\n", a); @@ -477,7 +477,7 @@ codedump(mrb_state *mrb, const mrb_irep *irep) print_lv_a(mrb, irep, a); break; CASE(OP_EXEC, BB); - printf("OP_EXEC\tR%d\tI(%d:%p)", a, b, irep->reps[b]); + printf("OP_EXEC\tR%d\tI(%d:%p)", a, b, (void*)irep->reps[b]); print_lv_a(mrb, irep, a); break; CASE(OP_SCLASS, B); |
