Commit f9f425ae authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

inspect on classes should not cause SEGV

parent ac26b2a8
......@@ -1090,7 +1090,7 @@ mrb_class_name(mrb_state *mrb, struct RClass* c)
const char*
mrb_obj_classname(mrb_state *mrb, mrb_value obj)
{
return mrb_class_name(mrb, mrb_class(mrb, obj));
return mrb_class_name(mrb, mrb_obj_class(mrb, obj));
}
/*!
......
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