mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix: mrbgems\mruby-math\src\math.c(660): warning C4244: 'function': conversion from 'mrb_int' to 'int', possible loss of data
This commit is contained in:
committed by
Tomasz Dabrowski
parent
49e96a2e19
commit
553dbad2c6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user