Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jun 2, 2024
1 parent 556aa81 commit 68e981c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions base/special/lcm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
/**
* Computes the least common multiple (lcm).
*
* @private
* @param a integer
* @param b integer
* @return least common multiple
Expand All @@ -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...
Expand Down

0 comments on commit 68e981c

Please sign in to comment.