mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
dump.c: should dump INT64 with MRB_32BIT.
This commit is contained in:
+2
-2
@@ -110,7 +110,7 @@ get_pool_block_size(mrb_state *mrb, const mrb_irep *irep)
|
||||
|
||||
switch (irep->pool[pool_no].tt) {
|
||||
case IREP_TT_INT64:
|
||||
#ifdef MRB_64BIT
|
||||
#if defined(MRB_64BIT) || defined(MRB_INT64)
|
||||
{
|
||||
int64_t i = irep->pool[pool_no].u.i64;
|
||||
|
||||
@@ -172,8 +172,8 @@ write_pool_block(mrb_state *mrb, const mrb_irep *irep, uint8_t *buf)
|
||||
int ai = mrb_gc_arena_save(mrb);
|
||||
|
||||
switch (irep->pool[pool_no].tt) {
|
||||
#ifdef MRB_64BIT
|
||||
case IREP_TT_INT64:
|
||||
#if defined(MRB_64BIT) || defined(MRB_INT64)
|
||||
{
|
||||
int64_t i = irep->pool[pool_no].u.i64;
|
||||
if (i < INT32_MIN || INT32_MAX < i) {
|
||||
|
||||
Reference in New Issue
Block a user