Add ISO Number to Hash

This commit is contained in:
Daniel Bovensiepen
2013-06-17 04:49:56 +08:00
parent b9604819ee
commit 029ed96510
+1 -1
View File
@@ -1232,7 +1232,7 @@ mrb_init_hash(mrb_state *mrb)
{
struct RClass *h;
h = mrb->hash_class = mrb_define_class(mrb, "Hash", mrb->object_class);
h = mrb->hash_class = mrb_define_class(mrb, "Hash", mrb->object_class); /* 15.2.13 */
MRB_SET_INSTANCE_TT(h, MRB_TT_HASH);
mrb_include_module(mrb, h, mrb_class_get(mrb, "Enumerable"));