From 807d7c92e7dbea96cd211bc618e041429a378a84 Mon Sep 17 00:00:00 2001 From: Muhammad Haris <101793258+headlessNode@users.noreply.github.com> Date: Fri, 29 Nov 2024 13:23:22 +0500 Subject: [PATCH] refactor: apply review suggestion Signed-off-by: Muhammad Haris <101793258+headlessNode@users.noreply.github.com> --- .../dsort2hp/benchmark/c/benchmark.unsorted_random.length.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/c/benchmark.unsorted_random.length.c b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/c/benchmark.unsorted_random.length.c index 6c283319bf85..286dccc07db1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/c/benchmark.unsorted_random.length.c +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/c/benchmark.unsorted_random.length.c @@ -141,13 +141,13 @@ static double benchmark2( int iterations, int len ) { t = tic(); for ( i = 0; i < iterations; i++ ) { stdlib_strided_dsort2hp_ndarray( len, 1, x, 1, 0, y, 1, 0 ); - if ( y[ i%len ] != y[ i%len ] ) { + if ( y[ 0 ] != y[ 0 ] ) { printf( "should not return NaN\n" ); break; } } elapsed = tic() - t; - if ( y[ i%len ] != y[ i%len ] ) { + if ( y[ 0 ] != y[ 0 ] ) { printf( "should not return NaN\n" ); } return elapsed;