Commit e9e720ea authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Support load 64-bit integer from mrb format with MRB_32BIT and MRB_INT64

parent 07c84702
......@@ -146,7 +146,7 @@ read_irep_record_1(mrb_state *mrb, const uint8_t *bin, size_t *len, uint8_t flag
}
break;
case IREP_TT_INT64:
#ifdef MRB_64BIT
#ifdef MRB_INT64
{
uint64_t i64 = bin_to_uint32(src);
src += sizeof(uint32_t);
......@@ -158,7 +158,7 @@ read_irep_record_1(mrb_state *mrb, const uint8_t *bin, size_t *len, uint8_t flag
}
break;
#else
return FALSE; /* INT64 not supported on MRB_32BIT */
return FALSE;
#endif
case IREP_TT_BIGINT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment