From b5801cd7307260499b0f41f1c7a6fc2a2e91532d Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 11 Oct 2024 14:18:48 +0900 Subject: [PATCH] mruby-bigint (mrb_bint_new_int64): fixed a bug on the 32bit platforms --- mrbgems/mruby-bigint/core/bigint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-bigint/core/bigint.c b/mrbgems/mruby-bigint/core/bigint.c index 21930872f..422969295 100644 --- a/mrbgems/mruby-bigint/core/bigint.c +++ b/mrbgems/mruby-bigint/core/bigint.c @@ -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