Skip to content

Commit c75da3e

Browse files
committed
style: compare n with integer, not a double in math/base/special/binomcoefln
PR-URL: stdlib-js#2775 Signed-off-by: Gunj Joshi <[email protected]> Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent 26f6150 commit c75da3e

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/binomcoefln/src

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/math/base/special/binomcoefln/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* // returns ~3.332
3636
*/
3737
double stdlib_base_binomcoefln( const int64_t n, const int64_t k ) {
38-
if ( n < 0.0 ) {
38+
if ( n < 0 ) {
3939
return stdlib_base_binomcoefln( -n + k - 1, k );
4040
}
4141
if ( k < 0 ) {

0 commit comments

Comments
 (0)