Skip to content

Commit 21687b2

Browse files
gunjjoshikgryte
andauthored
Update lib/node_modules/@stdlib/math/base/special/bernoulli/benchmark/c/native/benchmark.c
Co-authored-by: Athan <[email protected]> Signed-off-by: Gunj Joshi <[email protected]>
1 parent 3e9c7d7 commit 21687b2

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/bernoulli/benchmark/c/native

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/math/base/special/bernoulli/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static double benchmark( void ) {
102102

103103
t = tic();
104104
for ( i = 0; i < ITERATIONS; i++ ) {
105-
y = stdlib_base_bernoulli( x[ i % 100 ] );
105+
y = stdlib_base_bernoulli( (int)( x[ i % 100 ] ) );
106106
if ( y != y ) {
107107
printf( "should not return NaN\n" );
108108
break;

0 commit comments

Comments
 (0)