Skip to content

Commit add5315

Browse files
authored
refactor: apply review suggestion
Signed-off-by: Muhammad Haris <[email protected]>
1 parent e7e26af commit add5315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/c/benchmark.unsorted_random.length.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ static double benchmark1( int iterations, int len ) {
108108
t = tic();
109109
for ( i = 0; i < iterations; i++ ) {
110110
stdlib_strided_dsort2hp( len, 1, x, 1, y, 1 );
111-
if ( y[ i%len ] != y[ i%len ] ) {
111+
if ( y[ 0 ] != y[ 0 ] ) {
112112
printf( "should not return NaN\n" );
113113
break;
114114
}
115115
}
116116
elapsed = tic() - t;
117-
if ( y[ i%len ] != y[ i%len ] ) {
117+
if ( y[ 0 ] != y[ 0 ] ) {
118118
printf( "should not return NaN\n" );
119119
}
120120
return elapsed;

0 commit comments

Comments
 (0)