Unable for the MRB_TT_CPTR object to have a singleton class

This object is treated as an immediate value.
This commit is contained in:
dearblue
2020-11-21 15:36:56 +09:00
parent eb52c29b2d
commit 7f9b4e056d
-1
View File
@@ -1569,7 +1569,6 @@ mrb_singleton_class_ptr(mrb_state *mrb, mrb_value v)
case MRB_TT_TRUE:
return mrb->true_class;
case MRB_TT_CPTR:
return mrb->object_class;
case MRB_TT_SYMBOL:
case MRB_TT_INTEGER:
#ifndef MRB_NO_FLOAT