Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Athan <[email protected]>
  • Loading branch information
kgryte authored Oct 19, 2024
1 parent 9fedf44 commit eca97f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/math/base/special/nanmin/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
* // returns 4.14
*/
double stdlib_base_nanmin( const double x, const double y ) {
if ( stdlib_base_is_nan( x ) ) {
return stdlib_base_is_nan( y ) ? 0.0 / 0.0 : y;
}
return stdlib_base_is_nan( y ) ? x : stdlib_base_min( x, y );
if ( stdlib_base_is_nan( x ) ) {
return stdlib_base_is_nan( y ) ? 0.0 / 0.0 : y;
}
return stdlib_base_is_nan( y ) ? x : stdlib_base_min( x, y );
}

0 comments on commit eca97f0

Please sign in to comment.