diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-27 15:03:47 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-27 15:03:47 +0900 |
| commit | aa97b8a4feee8e9ff4fa091979cb37e103de3a15 (patch) | |
| tree | ab36f8daeb46a9d929661bfc702af00ec5032a8f /mrbgems | |
| parent | c1cd2007b875204bb7b5d78f2e0c3837188498f4 (diff) | |
| parent | 7993b8723575b8fe0410897445bff2aacb869e4e (diff) | |
| download | mruby-aa97b8a4feee8e9ff4fa091979cb37e103de3a15.tar.gz mruby-aa97b8a4feee8e9ff4fa091979cb37e103de3a15.zip | |
Merge pull request #4672 from shuujii/fix-build-of-mruby-random-on-32-bit-mode
Fix build of `mruby-random` on 32-bit mode
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-random/src/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-random/src/random.c b/mrbgems/mruby-random/src/random.c index 15f96934a..af9876ce7 100644 --- a/mrbgems/mruby-random/src/random.c +++ b/mrbgems/mruby-random/src/random.c @@ -355,7 +355,7 @@ void mrb_mruby_random_gem_init(mrb_state *mrb) struct RClass *random; struct RClass *array = mrb->array_class; - mrb_assert(sizeof(rand_state) < ISTRUCT_DATA_SIZE); + mrb_assert(sizeof(rand_state) <= ISTRUCT_DATA_SIZE); mrb_define_method(mrb, mrb->kernel_module, "rand", random_f_rand, MRB_ARGS_OPT(1)); mrb_define_method(mrb, mrb->kernel_module, "srand", random_f_srand, MRB_ARGS_OPT(1)); |
