mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Clarify the use of MRB_64BIT and MRB_INT64 in dump.c and load.c.
- `MRB_64BIT`: the size of a pointer is 64 bits - `MRB_INT64`: the size of `mrb_int` is 64 bits
This commit is contained in:
+3
-3
@@ -113,7 +113,7 @@ get_pool_block_size(mrb_state *mrb, const mrb_irep *irep)
|
||||
|
||||
switch (irep->pool[pool_no].tt) {
|
||||
case IREP_TT_INT64:
|
||||
#ifdef MRB_INT64
|
||||
#ifdef MRB_64BIT
|
||||
{
|
||||
int64_t i = irep->pool[pool_no].u.i64;
|
||||
|
||||
@@ -169,7 +169,7 @@ 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_INT64
|
||||
#ifdef MRB_64BIT
|
||||
case IREP_TT_INT64:
|
||||
{
|
||||
int64_t i = irep->pool[pool_no].u.i64;
|
||||
@@ -938,7 +938,7 @@ dump_pool(mrb_state *mrb, const mrb_pool_value *p, FILE *fp)
|
||||
case IREP_TT_INT32:
|
||||
fprintf(fp, "{IREP_TT_INT32, {.i32=%"PRId32"}},\n", p->u.i32);
|
||||
break;
|
||||
#ifdef MRB_INT64
|
||||
#ifdef MRB_64BIT
|
||||
case IREP_TT_INT64:
|
||||
fprintf(fp, "{IREP_TT_INT64, {.i64=%"PRId64"}},\n", p->u.i64);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user