Skip to content

Commit d40e159

Browse files
committed
Merge branch 'factorial2' of https://github.com/gunjjoshi/stdlib into factorial2
2 parents c1e1e15 + 9daee24 commit d40e159

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)