Skip to content

Commit 66a2f81

Browse files
authored
fix: wrap intermediate computation
Signed-off-by: Athan <[email protected]>
1 parent a20e111 commit 66a2f81

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/blas/ext/base/sapxsumors/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/blas/ext/base/sapxsumors/lib/ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function sapxsumors( N, alpha, x, strideX, offsetX ) {
5353
}
5454
ix = offsetX;
5555
if ( strideX === 0 ) {
56-
return float64ToFloat32( N * ( alpha + x[ ix ] ) );
56+
return float64ToFloat32( N * float64ToFloat32( alpha + x[ ix ] ) );
5757
}
5858
sum = 0.0;
5959
for ( i = 0; i < N; i++ ) {

0 commit comments

Comments
 (0)