diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-06-30 14:25:22 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-06-30 14:25:22 -0700 |
| commit | b58cd82dc7ce040e3aada5dfd908b794e717aa44 (patch) | |
| tree | e62e0e13039b147eda97f9165fffd9a1f55d27a2 /src | |
| parent | 068087439e5731648e1072035e118ac99e4f31e3 (diff) | |
| parent | 56b63f5b45df096e677222d2911ef7fd91cdf92b (diff) | |
| download | mruby-b58cd82dc7ce040e3aada5dfd908b794e717aa44.tar.gz mruby-b58cd82dc7ce040e3aada5dfd908b794e717aa44.zip | |
Merge pull request #1325 from carsonmcdonald/unsignedfixes
Fix a few unsigned signed comparison warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/codegen.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/codegen.c b/src/codegen.c index cfbbe7286..091561b45 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -426,8 +426,7 @@ push_(codegen_scope *s) static inline int new_lit(codegen_scope *s, mrb_value val) { - int i; - + size_t i; switch (mrb_type(val)) { case MRB_TT_STRING: @@ -462,7 +461,7 @@ new_lit(codegen_scope *s, mrb_value val) static inline int new_msym(codegen_scope *s, mrb_sym sym) { - int i, len; + size_t i, len; len = s->irep->slen; if (len > 256) len = 256; @@ -481,7 +480,7 @@ new_msym(codegen_scope *s, mrb_sym sym) static inline int new_sym(codegen_scope *s, mrb_sym sym) { - int i; + size_t i; for (i=0; i<s->irep->slen; i++) { if (s->irep->syms[i] == sym) return i; |
