diff options
Diffstat (limited to 'src/cdump.c')
| -rw-r--r-- | src/cdump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cdump.c b/src/cdump.c index 32982e6fe..f21a735ab 100644 --- a/src/cdump.c +++ b/src/cdump.c @@ -135,11 +135,11 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f) if(irep->plen > 0) { SOURCE_CODE (" irep->pool = mrb_malloc(mrb, sizeof(mrb_value)*%d);", irep->plen); for (n=0; n<irep->plen; n++) { - switch (irep->pool[n].tt) { + switch (mrb_type(irep->pool[n])) { case MRB_TT_FLOAT: - SOURCE_CODE(" irep->pool[%d] = mrb_float_value(%.16e);", n, irep->pool[n].value.f); break; + SOURCE_CODE(" irep->pool[%d] = mrb_float_value(%.16e);", n, mrb_float(irep->pool[n])); break; case MRB_TT_FIXNUM: - SOURCE_CODE(" irep->pool[%d] = mrb_fixnum_value(%d);", n, irep->pool[n].value.i); break; + SOURCE_CODE(" irep->pool[%d] = mrb_fixnum_value(%d);", n, mrb_fixnum(irep->pool[n])); break; case MRB_TT_STRING: str_len = str_format_len(irep->pool[n]) + 1; if ( str_len > buf_len ) { |
