summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorJun Hiroe <[email protected]>2013-07-12 01:00:50 +0900
committerJun Hiroe <[email protected]>2013-07-12 01:00:50 +0900
commit883c45b931a7f1ed44fa3c629520f5481fe4fad3 (patch)
tree758c70450d3ad9eea9e69e8f873731e389621db4 /src/variable.c
parent2fd57d151908d2bd3d9a4746a05462eef6afe794 (diff)
downloadmruby-883c45b931a7f1ed44fa3c629520f5481fe4fad3.tar.gz
mruby-883c45b931a7f1ed44fa3c629520f5481fe4fad3.zip
Replace mrb_intern() func with mrb_intern2() func or mrb_intern_cstr() func.
Diffstat (limited to 'src/variable.c')
-rw-r--r--src/variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/variable.c b/src/variable.c
index 2610c5d7a..36ad24d09 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -916,7 +916,7 @@ mrb_const_remove(mrb_state *mrb, mrb_value mod, mrb_sym sym)
void
mrb_define_const(mrb_state *mrb, struct RClass *mod, const char *name, mrb_value v)
{
- mrb_obj_iv_set(mrb, (struct RObject*)mod, mrb_intern(mrb, name), v);
+ mrb_obj_iv_set(mrb, (struct RObject*)mod, mrb_intern_cstr(mrb, name), v);
}
void