diff options
| author | Hiroshi Mimaki <[email protected]> | 2014-10-02 13:37:49 +0900 |
|---|---|---|
| committer | Hiroshi Mimaki <[email protected]> | 2014-10-02 13:37:49 +0900 |
| commit | ed15477c74733d7394152434d6bd357c117e73e6 (patch) | |
| tree | 81400bbaa8aa181789a78ac394cc8eb828873fbb /src/proc.c | |
| parent | 6b956f1c1b18e69529ba4daef886ff7c11621656 (diff) | |
| download | mruby-ed15477c74733d7394152434d6bd357c117e73e6.tar.gz mruby-ed15477c74733d7394152434d6bd357c117e73e6.zip | |
Pacify MSVC warnings for numeric.c, proc.c, and symbol.c
Diffstat (limited to 'src/proc.c')
| -rw-r--r-- | src/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proc.c b/src/proc.c index ebdafccf8..4ece3c9e9 100644 --- a/src/proc.c +++ b/src/proc.c @@ -126,7 +126,7 @@ mrb_proc_cfunc_env_get(mrb_state *mrb, mrb_int idx) if (!e) { mrb_raise(mrb, E_TYPE_ERROR, "Can't get cfunc env from cfunc Proc without REnv."); } - if (idx < 0 || MRB_ENV_STACK_LEN(e) <= idx) { + if (idx < 0 || (mrb_int)MRB_ENV_STACK_LEN(e) <= idx) { mrb_raisef(mrb, E_INDEX_ERROR, "Env index out of range: %S (expected: 0 <= index < %S)", mrb_fixnum_value(idx), mrb_fixnum_value(MRB_ENV_STACK_LEN(e))); } |
