Skip to content

Commit 106da4a

Browse files
committed
Perform explicit cast in order to signal single-precision arithmetic
1 parent 31fd227 commit 106da4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/blas/base/sdot/lib

lib/node_modules/@stdlib/blas/base/sdot/lib/sdot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function sdot( N, x, strideX, y, strideY ) {
6363
// If we have a remainder, run a clean-up loop...
6464
if ( m > 0 ) {
6565
for ( i = 0; i < m; i++ ) {
66-
dot += float64ToFloat32( x[ i ] * y[ i ] );
66+
dot = float64ToFloat32( dot + ( x[ i ] * y[ i ] ) );
6767
}
6868
}
6969
if ( N < M ) {

0 commit comments

Comments
 (0)