Commit b58cd82d authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1325 from carsonmcdonald/unsignedfixes

Fix a few unsigned signed comparison warnings
parents 06808743 56b63f5b
...@@ -426,8 +426,7 @@ push_(codegen_scope *s) ...@@ -426,8 +426,7 @@ push_(codegen_scope *s)
static inline int static inline int
new_lit(codegen_scope *s, mrb_value val) new_lit(codegen_scope *s, mrb_value val)
{ {
int i; size_t i;
switch (mrb_type(val)) { switch (mrb_type(val)) {
case MRB_TT_STRING: case MRB_TT_STRING:
...@@ -462,7 +461,7 @@ new_lit(codegen_scope *s, mrb_value val) ...@@ -462,7 +461,7 @@ new_lit(codegen_scope *s, mrb_value val)
static inline int static inline int
new_msym(codegen_scope *s, mrb_sym sym) new_msym(codegen_scope *s, mrb_sym sym)
{ {
int i, len; size_t i, len;
len = s->irep->slen; len = s->irep->slen;
if (len > 256) len = 256; if (len > 256) len = 256;
...@@ -481,7 +480,7 @@ new_msym(codegen_scope *s, mrb_sym sym) ...@@ -481,7 +480,7 @@ new_msym(codegen_scope *s, mrb_sym sym)
static inline int static inline int
new_sym(codegen_scope *s, mrb_sym sym) new_sym(codegen_scope *s, mrb_sym sym)
{ {
int i; size_t i;
for (i=0; i<s->irep->slen; i++) { for (i=0; i<s->irep->slen; i++) {
if (s->irep->syms[i] == sym) return i; if (s->irep->syms[i] == sym) return i;
......
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