From 2acf72455406540f77b7c4809d8bf2bd2878a907 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 20 Apr 2013 23:11:01 +0900 Subject: wrong type cast --- src/variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/variable.c') 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); -- cgit v1.2.3