codegen.c: avoid integer comparison of different sign.

parent 4ae5ae35
...@@ -600,7 +600,7 @@ new_litbn(codegen_scope *s, const char *p, int base, mrb_bool neg) ...@@ -600,7 +600,7 @@ new_litbn(codegen_scope *s, const char *p, int base, mrb_bool neg)
codegen_error(s, "integer too big"); codegen_error(s, "integer too big");
} }
for (i=0; i<s->irep->plen; i++) { for (i=0; i<s->irep->plen; i++) {
mrb_int len; size_t len;
pv = &s->pool[i]; pv = &s->pool[i];
if (pv->tt != IREP_TT_BIGINT) continue; if (pv->tt != IREP_TT_BIGINT) continue;
len = pv->u.str[0]; len = pv->u.str[0];
......
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