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-complex | |
| parent | 192f3df9a1fca043801e42febcd4b105fa1d5733 (diff) | |
| download | mruby-5d371604557c7f0c006334c1383c5f8fe84ae38a.tar.gz mruby-5d371604557c7f0c006334c1383c5f8fe84ae38a.zip | |
Use `MRB_SYM()` more extensively.
Diffstat (limited to 'mrbgems/mruby-complex')
| -rw-r--r-- | mrbgems/mruby-complex/src/complex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-complex/src/complex.c b/mrbgems/mruby-complex/src/complex.c index 13e030829..e4143a762 100644 --- a/mrbgems/mruby-complex/src/complex.c +++ b/mrbgems/mruby-complex/src/complex.c @@ -236,7 +236,7 @@ void mrb_mruby_complex_gem_init(mrb_state *mrb) #ifdef COMPLEX_USE_ISTRUCT mrb_assert(sizeof(struct mrb_complex) < ISTRUCT_DATA_SIZE); #endif - comp = mrb_define_class(mrb, "Complex", mrb_class_get_id(mrb, MRB_SYM(Numeric))); + comp = mrb_define_class_id(mrb, MRB_SYM(Complex), mrb_class_get_id(mrb, MRB_SYM(Numeric))); #ifdef COMPLEX_USE_ISTRUCT MRB_SET_INSTANCE_TT(comp, MRB_TT_ISTRUCT); #else |
