diff options
| author | Yuichiro MASUI <[email protected]> | 2012-12-16 01:58:51 +0900 |
|---|---|---|
| committer | Yuichiro MASUI <[email protected]> | 2012-12-16 01:58:51 +0900 |
| commit | 4b8959daff04feabbcb3b2302f5171561ca1f194 (patch) | |
| tree | 2f75446c91d3da292fbbb69477dd57ea8f9bb0af /src/vm.c | |
| parent | 06d242ae430ad37fd88fe6490980121ee26a1283 (diff) | |
| parent | 404ad702db6b421eed9e5245edcb7c57eff9b359 (diff) | |
| download | mruby-4b8959daff04feabbcb3b2302f5171561ca1f194.tar.gz mruby-4b8959daff04feabbcb3b2302f5171561ca1f194.zip | |
Merge branch 'master' into use_ruby_for_building
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1390,7 +1390,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) x = mrb_fixnum(regs[a]); y = mrb_fixnum(regs[a+1]); z = x - y; - if (((x < 0) ^ (y < 0)) == 0 && (x < 0) != (z < 0)) { + if (((x < 0) ^ (y < 0)) != 0 && (x < 0) != (z < 0)) { /* integer overflow */ SET_FLT_VALUE(regs[a], (mrb_float)x - (mrb_float)y); break; @@ -1532,7 +1532,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) mrb_int y = GETARG_C(i); mrb_int z = x - y; - if (((x < 0) ^ (y < 0)) == 0 && (x < 0) != (z < 0)) { + if (((x < 0) ^ (y < 0)) != 0 && (x < 0) != (z < 0)) { /* integer overflow */ SET_FLT_VALUE(regs[a], (mrb_float)x - (mrb_float)y); break; |
