diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-14 01:19:27 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-14 01:19:27 +0900 |
| commit | e1b84143c6afefa5aa7edf7c02c019c6c4a4c1d4 (patch) | |
| tree | a1ff8eb842b493b34db4c57cbc5375810851c9e2 /src/numeric.c | |
| parent | 1a462131c06cdea16f09cd99d049ac6a200ba8ce (diff) | |
| parent | f0fed9dbec5f6a334ede9f7ccd3e6ceba014ab4f (diff) | |
| download | mruby-e1b84143c6afefa5aa7edf7c02c019c6c4a4c1d4.tar.gz mruby-e1b84143c6afefa5aa7edf7c02c019c6c4a4c1d4.zip | |
Merge pull request #2248 from carsonmcdonald/mulfix
Another change to fix issue #2244
Diffstat (limited to 'src/numeric.c')
| -rw-r--r-- | src/numeric.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/numeric.c b/src/numeric.c index 8af7bfd15..b3daddf85 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -702,7 +702,8 @@ mrb_fixnum_mul(mrb_state *mrb, mrb_value x, mrb_value y) a = mrb_fixnum(x); if (mrb_fixnum_p(y)) { - mrb_int b, c; + mrb_float c; + mrb_int b; if (a == 0) return x; b = mrb_fixnum(y); |
