Skip to content

Commit 2db8e90

Browse files
bench: fix invalid array indexing
PR-URL: #6434 Ref: #6302 Reviewed-by: Athan Reines <[email protected]>
1 parent ac88117 commit 2db8e90

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/math/base/special/cbrtf/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_cbrtf( x[ i%x.length ] );
105+
y = stdlib_base_cbrtf( x[ i%100 ] );
106106
if ( y != y ) {
107107
printf( "should not return NaN\n" );
108108
break;

0 commit comments

Comments
 (0)