diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-25 15:41:29 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-25 15:45:32 +0900 |
| commit | 0903e2a72e8f3aa848fdbb60f1ceece7af3d1cb4 (patch) | |
| tree | 7ed6a279752f227b2a6afc24edf9f8fb3c6bbc31 /mrbgems | |
| parent | efef4541aa97460b80618af369879881b376cc30 (diff) | |
| download | mruby-0903e2a72e8f3aa848fdbb60f1ceece7af3d1cb4.tar.gz mruby-0903e2a72e8f3aa848fdbb60f1ceece7af3d1cb4.zip | |
Silence 'loss of data' warnings.
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-rational/src/rational.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-rational/src/rational.c b/mrbgems/mruby-rational/src/rational.c index 0d317cc0f..c9f3e0d03 100644 --- a/mrbgems/mruby-rational/src/rational.c +++ b/mrbgems/mruby-rational/src/rational.c @@ -166,8 +166,8 @@ rational_new_i(mrb_state *mrb, mrb_int n, mrb_int d) #include <math.h> #if defined(MRB_INT32) || defined(MRB_USE_FLOAT32) -#define frexp_rat frexpf -#define ldexp_rat ldexpf +#define frexp_rat(x,exp) frexpf((float)x, exp) +#define ldexp_rat(x,exp) ldexpf((float)x, exp) #define RAT_MANT_DIG FLT_MANT_DIG #define RAT_INT_LIMIT 30 #define RAT_HUGE_VAL HUGE_VALF |
