wrong type cast

parent e861ecf5
...@@ -671,7 +671,7 @@ mrb_mod_class_variables(mrb_state *mrb, mrb_value mod) ...@@ -671,7 +671,7 @@ mrb_mod_class_variables(mrb_state *mrb, mrb_value mod)
struct RClass *c; struct RClass *c;
ary = mrb_ary_new(mrb); ary = mrb_ary_new(mrb);
c = mrb_obj_ptr(mod); c = mrb_class_ptr(mod);
while (c) { while (c) {
if (c->iv) { if (c->iv) {
iv_foreach(mrb, c->iv, cv_i, &ary); iv_foreach(mrb, c->iv, cv_i, &ary);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment