From bcd595ad1b21f26b5a9d9e74b3705486a6eb24b7 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 4 Mar 2023 23:09:04 +0900 Subject: [PATCH] mruby-bigint/bigint.c: add `else` to skip `if` check --- 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 5c757729c..a3457e275 100644 --- a/mrbgems/mruby-bigint/core/bigint.c +++ b/mrbgems/mruby-bigint/core/bigint.c @@ -78,7 +78,7 @@ mpz_set_int(mrb_state *mrb, mpz_t *y, mrb_int v) y->sn = 1; u = v; } - if (v < 0) { + else if (v < 0) { y->sn = -1; if (v == MRB_INT_MIN) u = v; else u = -v;