mruby-bigint (mrb_bint_new_int64): fixed a bug on the 32bit platforms

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-10-11 14:18:48 +09:00
parent 2d565d30cb
commit b5801cd730
+1 -1
View File
@@ -1188,7 +1188,7 @@ mrb_bint_new_int64(mrb_state *mrb, int64_t n)
{
mpz_t x;
mpz_set_int64(mrb, &x, n);
struct RBigint *b = bint_new_int(mrb, x);
struct RBigint *b = bint_new(mrb, &x);
return mrb_obj_value(b);
}
#endif