diff options
| -rw-r--r-- | src/class.c | 2 | ||||
| -rw-r--r-- | src/pool.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/class.c b/src/class.c index 8aa976c08..4349e7b49 100644 --- a/src/class.c +++ b/src/class.c @@ -696,7 +696,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...) if (i < argc && mrb_nil_p(ARGV[arg_i])) { *ps = NULL; *pl = 0; - i++; + i++; arg_i++; break; } } diff --git a/src/pool.c b/src/pool.c index 18f66fc27..db4546abf 100644 --- a/src/pool.c +++ b/src/pool.c @@ -13,8 +13,12 @@ /* allocated memory address should be multiple of POOL_ALIGNMENT */ /* or undef it if alignment does not matter */ #ifndef POOL_ALIGNMENT +#if INTPTR_MAX == INT64_MAX +#define POOL_ALIGNMENT 8 +#else #define POOL_ALIGNMENT 4 #endif +#endif /* page size of memory pool */ #ifndef POOL_PAGE_SIZE #define POOL_PAGE_SIZE 16000 |
