mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix CI failure on Windows environment.
`1L` on Windows means `32 bit int`.
This commit is contained in:
@@ -188,7 +188,7 @@ rational_new_f(mrb_state *mrb, mrb_float f0)
|
||||
else {
|
||||
n = -n;
|
||||
}
|
||||
return rational_new_i(mrb, f, 1L<<n);
|
||||
return rational_new_i(mrb, f, ((mrb_int)1)<<n);
|
||||
#else
|
||||
mrb_int pow = 1;
|
||||
if (n < 0) {
|
||||
|
||||
Reference in New Issue
Block a user