From 73b7b22b4fc232f7665817a12da3d6130beb25fe Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 25 Jul 2025 11:01:34 +0900 Subject: [PATCH] mruby-bigint: add consistent spacing around multiplication operators Add spaces around * operators in division functions for consistent code formatting and improved readability. Co-authored-by: Claude --- mrbgems/mruby-bigint/core/bigint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mrbgems/mruby-bigint/core/bigint.c b/mrbgems/mruby-bigint/core/bigint.c index 17187ee82..862488291 100644 --- a/mrbgems/mruby-bigint/core/bigint.c +++ b/mrbgems/mruby-bigint/core/bigint.c @@ -1660,7 +1660,7 @@ mpz_mdiv(mrb_state *mrb, mpz_t *q, mpz_t *x, mpz_t *y) } mpz_init(mrb, &r); udiv(mrb, q, &r, x, y); - qsign = q->sn = sn1*sn2; + qsign = q->sn = sn1 * sn2; if (uzero_p(q)) q->sn = 0; /* now if r != 0 and q < 0 we need to round q towards -inf */ @@ -1690,7 +1690,7 @@ mpz_mmod(mrb_state *mrb, mpz_t *r, mpz_t *x, mpz_t *y) r->sn = 0; return; } - sn3 = sn1*sn2; + sn3 = sn1 * sn2; if (sn3 > 0) r->sn = sn1; else if (sn1 < 0 && sn2 > 0) { @@ -1714,7 +1714,7 @@ mpz_mdivmod(mrb_state *mrb, mpz_t *q, mpz_t *r, mpz_t *x, mpz_t *y) return; } udiv(mrb, q, r, x, y); - qsign = q->sn = sn1*sn2; + qsign = q->sn = sn1 * sn2; if (uzero_p(r)) { /* q != 0, since q=r=0 would mean x=0, which was tested above */ r->sn = 0;