Skip to content

Commit 825738a

Browse files
authored
bench: use correct variable name in benchmark for number/float32/base/signbit
PR-URL: #9378 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 345c740 commit 825738a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/number/float32/base/signbit/benchmark

lib/node_modules/@stdlib/number/float32/base/signbit/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bench( pkg, function benchmark( b ) {
3939
for ( i = 0; i < b.iterations; i++ ) {
4040
x = ( randu()*1.0e7 ) - 5.0e6;
4141
y = signbitf( toFloat32( x ) );
42-
if ( typeof bool !== 'boolean' ) {
42+
if ( typeof y !== 'boolean' ) {
4343
b.fail( 'should return a boolean' );
4444
}
4545
}

0 commit comments

Comments
 (0)