Skip to content

Commit 7552a5f

Browse files
committed
fix: address pointer increment bug
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 432b26d commit 7552a5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ function dsumkbn( N, x, strideX, offsetX ) {
6767
return N * x[ ix ];
6868
}
6969
v = x[ ix ];
70+
ix += strideX;
7071
sum = v;
7172

7273
// In order to preserve the sign of zero which can be lost during compensated summation below, find the first non-zero element...
@@ -82,7 +83,6 @@ function dsumkbn( N, x, strideX, offsetX ) {
8283
}
8384
} else {
8485
flg = true;
85-
ix += strideX;
8686
i = 1;
8787
}
8888
c = 0.0;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ double API_SUFFIX(stdlib_strided_dsumkbn_ndarray)( const CBLAS_INT N, const doub
7676
return N * X[ ix ];
7777
}
7878
v = X[ ix ];
79+
ix += strideX;
7980
sum = v;
8081
flg = 0;
8182

@@ -92,7 +93,6 @@ double API_SUFFIX(stdlib_strided_dsumkbn_ndarray)( const CBLAS_INT N, const doub
9293
}
9394
} else {
9495
flg = 1;
95-
ix += strideX;
9696
i = 1;
9797
}
9898
c = 0.0;

0 commit comments

Comments
 (0)