summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-08-18 19:21:27 +0900
committerYukihiro Matsumoto <[email protected]>2012-08-18 19:21:27 +0900
commitfd086a7d081c19ea1b2db85e0e5c55d0736b8728 (patch)
treeabcae80e110b31cd17b997d2c61874f61786073c /src
parent97b7eb60968fcd9f3a6a56f1e64d854137e5f732 (diff)
downloadmruby-fd086a7d081c19ea1b2db85e0e5c55d0736b8728.tar.gz
mruby-fd086a7d081c19ea1b2db85e0e5c55d0736b8728.zip
replace mrb_iv_set by mrb_obj_iv_set
Diffstat (limited to 'src')
-rw-r--r--src/variable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/variable.c b/src/variable.c
index 0dc972ba1..1fb91c56c 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -747,13 +747,13 @@ mrb_vm_const_set(mrb_state *mrb, mrb_sym sym, mrb_value v)
struct RClass *c = mrb->ci->proc->target_class;
if (!c) c = mrb->ci->target_class;
- mrb_iv_set(mrb, mrb_obj_value(c), sym, v);
+ mrb_obj_iv_set(mrb, (struct RObject*)c, sym, v);
}
void
mrb_define_const(mrb_state *mrb, struct RClass *mod, const char *name, mrb_value v)
{
- mrb_iv_set(mrb, mrb_obj_value(mod), mrb_intern(mrb, name), v);
+ mrb_obj_iv_set(mrb, (struct RObject*)mod, mrb_intern(mrb, name), v);
}
void