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:
Yukihiro "Matz" Matsumoto
2019-08-27 15:03:47 +09:00
committed by GitHub
+1 -1
View File
@@ -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));