diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-05 08:09:04 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-05 08:09:04 +0900 |
| commit | abb288f5cb5e36071f1b5c31b834c38f5c4d2442 (patch) | |
| tree | 18f42a6ece700bacb0b1be7900511439156bed50 /src | |
| parent | cb7d351bfb366541ee111bed54ccaae93b1689e0 (diff) | |
| download | mruby-abb288f5cb5e36071f1b5c31b834c38f5c4d2442.tar.gz mruby-abb288f5cb5e36071f1b5c31b834c38f5c4d2442.zip | |
codedump.c: fix a compiler condition bug with `MRB_NO_FLOAT`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/codedump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codedump.c b/src/codedump.c index f382bb7eb..0556d724d 100644 --- a/src/codedump.c +++ b/src/codedump.c @@ -140,11 +140,11 @@ codedump(mrb_state *mrb, const mrb_irep *irep) CASE(OP_LOADL, BB); op_loadl: switch (irep->pool[b].tt) { - case IREP_TT_FLOAT: #ifndef MRB_NO_FLOAT + case IREP_TT_FLOAT: printf("OP_LOADL\tR%d\tL(%d)\t; %f", a, b, (double)irep->pool[b].u.f); -#endif break; +#endif case IREP_TT_INT32: printf("OP_LOADL\tR%d\tL(%d)\t; %" PRId32, a, b, irep->pool[b].u.i32); break; |
