diff --git a/lib/node_modules/@stdlib/math/base/special/fast/uint32-log2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/uint32-log2/benchmark/c/native/benchmark.c index 137884a5372..fd96b3ad721 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/uint32-log2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/uint32-log2/benchmark/c/native/benchmark.c @@ -104,14 +104,14 @@ double benchmark() { for ( i = 0; i < ITERATIONS; i++ ) { x = (uint32_t)rand(); y = stdlib_base_fast_uint32_log2( x ); - if ( y != y ) { - printf( "should not return NaN\n" ); + if ( y > x ) { + printf( "unexpected result\n" ); break; } } elapsed = tic() - t; - if ( y != y ) { - printf( "should not return NaN\n" ); + if ( y > x ) { + printf( "unexpected result\n" ); } return elapsed; }