Merge pull request #1582 from takahashim/warning-enum-irep_pool_type

irep->pool[n].type should be IREP_TT_*, not MRB_TT_*
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-11-17 13:39:47 -08:00
+1 -1
View File
@@ -111,7 +111,7 @@ read_irep_record_1(mrb_state *mrb, const uint8_t *bin, uint32_t *len)
irep->pool[i].value.i = mrb_fixnum(v);
break;
case MRB_TT_FLOAT:
irep->pool[i].type = MRB_TT_FLOAT;
irep->pool[i].type = IREP_TT_FLOAT;
irep->pool[i].value.f = mrb_float(v);
default:
/* broken data; should not happen */