From 68e981c662cbc4802278692b8a2979f441b3566b Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 2 Jun 2024 08:50:36 +0000 Subject: [PATCH] Auto-generated commit --- base/special/lcm/src/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/base/special/lcm/src/main.c b/base/special/lcm/src/main.c index a11adbc57..cc0c00ae9 100644 --- a/base/special/lcm/src/main.c +++ b/base/special/lcm/src/main.c @@ -23,7 +23,6 @@ /** * Computes the least common multiple (lcm). * -* @private * @param a integer * @param b integer * @return least common multiple @@ -37,19 +36,17 @@ double stdlib_base_lcm( const double a, const double b ) { double bn; double d; - if( a == 0.0 || b == 0.0 ) { + if ( a == 0.0 || b == 0.0 ) { return 0.0; } if ( a < 0.0 ) { an = -a; - } - else { + } else { an = a; } if ( b < 0.0 ) { bn = -b; - } - else { + } else { bn = b; } // Note: we rely on `gcd` to perform further argument validation...