mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #4672 from shuujii/fix-build-of-mruby-random-on-32-bit-mode
Fix build of `mruby-random` on 32-bit mode
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user