1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rb_const_set sets the class path now

This commit is contained in:
Nobuyoshi Nakada 2020-10-09 12:03:52 +09:00
parent 6944b927bd
commit 9ee99fbd8a
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -1688,7 +1688,6 @@ InitVM_Random(void)
rb_undef_alloc_func(base); rb_undef_alloc_func(base);
rb_cRandom = rb_define_class("Random", base); rb_cRandom = rb_define_class("Random", base);
rb_const_set(rb_cRandom, id_base, base); rb_const_set(rb_cRandom, id_base, base);
rb_set_class_path(base, rb_cRandom, "Base");
rb_define_alloc_func(rb_cRandom, random_alloc); rb_define_alloc_func(rb_cRandom, random_alloc);
rb_define_method(base, "initialize", random_init, -1); rb_define_method(base, "initialize", random_init, -1);
rb_define_method(base, "rand", random_rand, -1); rb_define_method(base, "rand", random_rand, -1);