Skip to content

Commit 807d7c9

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

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
@@ -141,13 +141,13 @@ static double benchmark2( int iterations, int len ) {
141141
t = tic();
142142
for ( i = 0; i < iterations; i++ ) {
143143
stdlib_strided_dsort2hp_ndarray( len, 1, x, 1, 0, y, 1, 0 );
144-
if ( y[ i%len ] != y[ i%len ] ) {
144+
if ( y[ 0 ] != y[ 0 ] ) {
145145
printf( "should not return NaN\n" );
146146
break;
147147
}
148148
}
149149
elapsed = tic() - t;
150-
if ( y[ i%len ] != y[ i%len ] ) {
150+
if ( y[ 0 ] != y[ 0 ] ) {
151151
printf( "should not return NaN\n" );
152152
}
153153
return elapsed;

0 commit comments

Comments
 (0)