summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-04-20 23:11:01 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2013-04-20 23:11:01 +0900
commit2acf72455406540f77b7c4809d8bf2bd2878a907 (patch)
treea70efc1702299c72807a21db058526c8be323460 /src/variable.c
parente861ecf514007543264d6257aa01b503bbb6ae99 (diff)
downloadmruby-2acf72455406540f77b7c4809d8bf2bd2878a907.tar.gz
mruby-2acf72455406540f77b7c4809d8bf2bd2878a907.zip
wrong type cast
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 63945b7fa..33932ec4c 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -671,7 +671,7 @@ mrb_mod_class_variables(mrb_state *mrb, mrb_value mod)
struct RClass *c;
ary = mrb_ary_new(mrb);
- c = mrb_obj_ptr(mod);
+ c = mrb_class_ptr(mod);
while (c) {
if (c->iv) {
iv_foreach(mrb, c->iv, cv_i, &ary);