summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-binding-core/src/binding-core.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-02-26 15:05:55 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-02-26 15:05:55 +0900
commit5d371604557c7f0c006334c1383c5f8fe84ae38a (patch)
treebca486cb271e8f8e499d0bd67d6cc83716958b7a /mrbgems/mruby-binding-core/src/binding-core.c
parent192f3df9a1fca043801e42febcd4b105fa1d5733 (diff)
downloadmruby-5d371604557c7f0c006334c1383c5f8fe84ae38a.tar.gz
mruby-5d371604557c7f0c006334c1383c5f8fe84ae38a.zip
Use `MRB_SYM()` more extensively.
Diffstat (limited to 'mrbgems/mruby-binding-core/src/binding-core.c')
-rw-r--r--mrbgems/mruby-binding-core/src/binding-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-binding-core/src/binding-core.c b/mrbgems/mruby-binding-core/src/binding-core.c
index 8086185ea..5563783c4 100644
--- a/mrbgems/mruby-binding-core/src/binding-core.c
+++ b/mrbgems/mruby-binding-core/src/binding-core.c
@@ -220,7 +220,7 @@ cache_source_location:
mrb_value
mrb_binding_alloc(mrb_state *mrb)
{
- struct RObject *obj = (struct RObject*)mrb_obj_alloc(mrb, MRB_TT_OBJECT, mrb_class_get(mrb, "Binding"));
+ struct RObject *obj = (struct RObject*)mrb_obj_alloc(mrb, MRB_TT_OBJECT, mrb_class_get_id(mrb, MRB_SYM(Binding)));
return mrb_obj_value(obj);
}