Fix CI failure on Windows environment.

`1L` on Windows means `32 bit int`.
parent e66c6eda
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment