Skip to content

Commit 01126b1

Browse files
authored
style: compare n with integer, not a double in math/base/special/binomcoefln
PR-URL: #2775 Signed-off-by: Gunj Joshi <gunjjoshi8372@gmail.com> Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 068bc90 commit 01126b1

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

Lines changed: 1 addition & 1 deletion
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)