Fixed MRB_INT64 warning

This commit is contained in:
Yuichiro MASUI
2013-01-21 23:21:16 +09:00
parent cc2e4e73de
commit 2b2051ebb1
2 changed files with 15 additions and 7 deletions
+5 -1
View File
@@ -145,7 +145,11 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f)
case MRB_TT_FLOAT:
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, mrb_fixnum(irep->pool[n])); break;
{
char num_buf[64];
mrb_int_to_str(num_buf, mrb_fixnum(irep->pool[n]));
SOURCE_CODE(" irep->pool[%d] = mrb_fixnum_value(%s);", n, num_buf); break;
}
case MRB_TT_STRING:
str_len = str_format_len(irep->pool[n]) + 1;
if ( str_len > buf_len ) {