summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-math
diff options
context:
space:
mode:
authorTomasz Dąbrowski <[email protected]>2017-09-25 17:03:30 +0200
committerTomasz Dabrowski <[email protected]>2017-09-27 22:22:04 +0200
commit553dbad2c618139ea164af9a9061208ebe2a4093 (patch)
tree7a46bef535d37bc811f111c12f2a1f7e16bd3650 /mrbgems/mruby-math
parent49e96a2e19259bd216de39464632eda5c28063ef (diff)
downloadmruby-553dbad2c618139ea164af9a9061208ebe2a4093.tar.gz
mruby-553dbad2c618139ea164af9a9061208ebe2a4093.zip
fix: mrbgems\mruby-math\src\math.c(660): warning C4244: 'function': conversion from 'mrb_int' to 'int', possible loss of data
Diffstat (limited to 'mrbgems/mruby-math')
-rw-r--r--mrbgems/mruby-math/src/math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-math/src/math.c b/mrbgems/mruby-math/src/math.c
index 4ddd70374..c182debea 100644
--- a/mrbgems/mruby-math/src/math.c
+++ b/mrbgems/mruby-math/src/math.c
@@ -657,7 +657,7 @@ math_ldexp(mrb_state *mrb, mrb_value obj)
mrb_int i;
mrb_get_args(mrb, "fi", &x, &i);
- x = ldexp(x, i);
+ x = ldexp(x, (int)i);
return mrb_float_value(mrb, x);
}