diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-26 01:52:30 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-26 01:52:30 +0900 |
| commit | 44ec41a7724ef3591e9d4033655fa12e79b9ff2b (patch) | |
| tree | 8140ae84b8886156fe742917835bea03da68457b /src | |
| parent | 49abcd4c0281d00030a540f7426de72882806dd4 (diff) | |
| download | mruby-44ec41a7724ef3591e9d4033655fa12e79b9ff2b.tar.gz mruby-44ec41a7724ef3591e9d4033655fa12e79b9ff2b.zip | |
should use plain int for index, since i may be printed using %d; close #2127
Diffstat (limited to 'src')
| -rw-r--r-- | src/codegen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.c b/src/codegen.c index b35599470..015631a7a 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -2627,7 +2627,7 @@ static void codedump(mrb_state *mrb, mrb_irep *irep) { #ifdef ENABLE_STDIO - size_t i; + int i; int ai; mrb_code c; @@ -2635,7 +2635,7 @@ codedump(mrb_state *mrb, mrb_irep *irep) printf("irep %p nregs=%d nlocals=%d pools=%d syms=%d reps=%d\n", irep, irep->nregs, irep->nlocals, (int)irep->plen, (int)irep->slen, (int)irep->rlen); - for (i = 0; i < irep->ilen; i++) { + for (i = 0; i < (int)irep->ilen; i++) { ai = mrb_gc_arena_save(mrb); printf("%03d ", i); c = irep->iseq[i]; |
