Skip to content

Commit c657965

Browse files
committed
fix: apply code review suggestion
1 parent bbbbb34 commit c657965

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ function dnansumkbn2( N, x, strideX, offsetX ) {
6262
var c;
6363
var i;
6464

65-
ix = offsetX;
6665
sum = 0.0;
6766
ccs = 0.0; // second order correction term for lost low order bits
6867
cs = 0.0; // first order correction term for lost low order bits
6968
if ( N <= 0 ) {
7069
return 0.0;
7170
}
71+
ix = offsetX;
7272
if ( strideX === 0 ) {
7373
if ( isnan( x[ ix ] ) ) {
7474
return sum;

lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ double API_SUFFIX(stdlib_strided_dnansumkbn2_ndarray)( const CBLAS_INT N, const
7171
double t;
7272
double c;
7373

74-
ix = offsetX;
7574
sum = 0.0;
7675
ccs = 0.0; // second order correction term for lost lower order bits
7776
cs = 0.0; // first order correction term for lost low order bits
7877
if ( N <= 0 ) {
7978
return sum;
8079
}
80+
ix = offsetX;
8181
if ( strideX == 0 ) {
8282
if ( stdlib_base_is_nan( X[ ix ] ) ) {
8383
return sum;

0 commit comments

Comments
 (0)