Skip to content

Commit a9c26e8

Browse files
authored
style: add decimal
Signed-off-by: Athan <[email protected]>
1 parent 4ca929e commit a9c26e8

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ float stdlib_base_bernoullif( const float n ) {
8585
if ( n > MAX_BERNOULLI ) {
8686
return ( (size_t)( n / 2 ) & 1 ) ? STDLIB_CONSTANT_FLOAT32_PINF : STDLIB_CONSTANT_FLOAT32_NINF;
8787
}
88-
return bernoulli_value[ (size_t)( n / 2 ) ];
88+
return bernoulli_value[ (size_t)( n / 2.0 ) ];
8989
}

0 commit comments

Comments
 (0)