diff --git a/mrbgems/mruby-bigint/core/bigint.c b/mrbgems/mruby-bigint/core/bigint.c index 75a90aedc..330d65eed 100644 --- a/mrbgems/mruby-bigint/core/bigint.c +++ b/mrbgems/mruby-bigint/core/bigint.c @@ -1143,7 +1143,7 @@ static void mpz_abs(mrb_state *mrb, mpz_t *x, mpz_t *y) { mpz_init_set(mrb, x, y); - if (y->sn == 0) + if (zero_p(y)) x->sn = 0; else x->sn = 1;