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 c71185d commit 5e857a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
}
],
"main": "./lib",
"gypfile": false,
"directories": {
"benchmark": "./benchmark",
"doc": "./docs",
"example": "./examples",
"include": "./include",
"lib": "./lib",
"src": "./src",
"test": "./test"
},
"types": "./docs/types",
Expand Down
9 changes: 3 additions & 6 deletions 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 5e857a2

Please sign in to comment.