diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-09-04 09:30:11 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 18:20:17 +0900 |
| commit | a127ded486b173b1b805da2c39d656c77d98c6cc (patch) | |
| tree | 7dd265068a0bbf9f5fb3e6e2386e88bd7e7ceb2c /mrbgems/mruby-rational/src | |
| parent | fe3c3bb661aac19761dcb446935d605a946065b9 (diff) | |
| download | mruby-a127ded486b173b1b805da2c39d656c77d98c6cc.tar.gz mruby-a127ded486b173b1b805da2c39d656c77d98c6cc.zip | |
Fix warning from VC regarding implicit int conversion.
Diffstat (limited to 'mrbgems/mruby-rational/src')
| -rw-r--r-- | mrbgems/mruby-rational/src/rational.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-rational/src/rational.c b/mrbgems/mruby-rational/src/rational.c index 06f198c98..d5dd7adc4 100644 --- a/mrbgems/mruby-rational/src/rational.c +++ b/mrbgems/mruby-rational/src/rational.c @@ -115,7 +115,7 @@ rational_new_f(mrb_state *mrb, mrb_float f0) if (f < 0) { neg = 1; f = -f; } while (f != floor(f)) { n <<= 1; f *= 2; } - d = f; + d = (mrb_int)f; /* continued fraction and check denominator each step */ for (i = 0; i < 64; i++) { |
