diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2012-11-17 02:16:35 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2012-11-17 02:16:35 +0900 |
| commit | 7cea9d7b945a4b00cef699f47c07654f8b7bd579 (patch) | |
| tree | d22dbb5c1a8c9c5d84b337e8e9df64c4327dae35 /src/numeric.c | |
| parent | f3191b943ff59506a920b7e3bc54a3bfcb25b4d4 (diff) | |
| download | mruby-7cea9d7b945a4b00cef699f47c07654f8b7bd579.tar.gz mruby-7cea9d7b945a4b00cef699f47c07654f8b7bd579.zip | |
int and mrb_int should not be mixed under -DMRB_INT64; may fix #557
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 562562340..98a60ed30 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -523,7 +523,8 @@ static mrb_value flo_round(mrb_state *mrb, mrb_value num) { double number, f; - int ndigits = 0, i; + mrb_int ndigits = 0; + int i; mrb_get_args(mrb, "|i", &ndigits); number = mrb_float(num); |
