diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-26 15:05:55 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-26 15:05:55 +0900 |
| commit | 5d371604557c7f0c006334c1383c5f8fe84ae38a (patch) | |
| tree | bca486cb271e8f8e499d0bd67d6cc83716958b7a /mrbgems/mruby-random | |
| parent | 192f3df9a1fca043801e42febcd4b105fa1d5733 (diff) | |
| download | mruby-5d371604557c7f0c006334c1383c5f8fe84ae38a.tar.gz mruby-5d371604557c7f0c006334c1383c5f8fe84ae38a.zip | |
Use `MRB_SYM()` more extensively.
Diffstat (limited to 'mrbgems/mruby-random')
| -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 0cefb9ed0..1fc42b854 100644 --- a/mrbgems/mruby-random/src/random.c +++ b/mrbgems/mruby-random/src/random.c @@ -168,7 +168,7 @@ random_check(mrb_state *mrb, mrb_value random) { static mrb_value random_default(mrb_state *mrb) { - struct RClass *c = mrb_class_get(mrb, "Random"); + struct RClass *c = mrb_class_get_id(mrb, MRB_SYM(Random)); mrb_value d = mrb_const_get(mrb, mrb_obj_value(c), MRB_SYM(DEFAULT)); if (!mrb_obj_is_kind_of(mrb, d, c)) { mrb_raise(mrb, E_TYPE_ERROR, "Random::DEFAULT replaced"); |
