mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-bigint (mrb_bint_new_int64): fixed a bug on the 32bit platforms
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user