Commit b8b22c1d authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

use mrb_obj_equal to check pool

parent 6491693d
......@@ -364,7 +364,7 @@ new_lit(codegen_scope *s, mrb_value val)
int i;
for (i=0; i<s->plen; i++) {
if (memcmp(&s->pool[i], &val, sizeof(mrb_value)) == 0) return i;
if (mrb_obj_equal(s->mrb, s->pool[i], val)) return i;
}
if (s->plen == s->pcapa) {
s->pcapa *= 2;
......
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