Skip to content

Commit 9daee24

Browse files
authored
bench: replace integer by a floating-point number
Signed-off-by: Gunj Joshi <[email protected]>
1 parent 2d3fe36 commit 9daee24

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

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

100100
t = tic();
101101
for ( i = 0; i < ITERATIONS; i++ ) {
102-
x = round( rand_double() * 301 );
102+
x = round( rand_double() * 301.0 );
103103
y = stdlib_base_factorial2( x );
104104
if ( y != y ) {
105105
printf( "should not return NaN\n" );

0 commit comments

Comments
 (0)