Skip to content

Commit 7e7d2f4

Browse files
committed
Use cached value
1 parent 20f96fc commit 7e7d2f4

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/math/special/abs/lib

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/math/special/abs/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ function abs( x ) {
162162
y = ctor( buf, [ N ], [ 1 ], 0, 'row-major' );
163163

164164
if ( isFloat64Array( x ) ) {
165-
dabs( x.length, x, 1, buf, 1 );
165+
dabs( N, x, 1, buf, 1 );
166166
} else if ( isFloat32Array( x ) ) {
167-
sabs( x.length, x, 1, buf, 1 );
167+
sabs( N, x, 1, buf, 1 );
168168
} else {
169-
gabs( x.length, x, 1, buf, 1 );
169+
gabs( N, x, 1, buf, 1 );
170170
}
171171
return y;
172172
}

0 commit comments

Comments
 (0)