diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-01-26 16:11:58 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-01-26 16:11:58 +0900 |
| commit | f01882a8e0ac2a947bd7285caf599029abd500fd (patch) | |
| tree | da926e5065d1edfe4aa8c0660dbe8ceb01e750f3 | |
| parent | 23e69edd2db9a8676dd8a7dbcade48b28e0a7e34 (diff) | |
| parent | d63e45a0147e88ab30aaa385e9d128b60b09138d (diff) | |
| download | mruby-f01882a8e0ac2a947bd7285caf599029abd500fd.tar.gz mruby-f01882a8e0ac2a947bd7285caf599029abd500fd.zip | |
Merge pull request #2714 from xxuejie/use-setter-macro-when-necessary
Use setter macro instead of directly setting values
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1920,7 +1920,7 @@ RETRY_TRY_BLOCK: SET_FLOAT_VALUE(mrb, regs[a], (mrb_float)x + (mrb_float)y); break; } - mrb_fixnum(regs[a]) = z; + SET_INT_VALUE(regs[a], z); } break; case MRB_TT_FLOAT: @@ -1958,7 +1958,7 @@ RETRY_TRY_BLOCK: SET_FLOAT_VALUE(mrb, regs_a[0], (mrb_float)x - (mrb_float)y); } else { - mrb_fixnum(regs_a[0]) = z; + SET_INT_VALUE(regs_a[0], z); } } break; |
