Skip to content

Commit c72df11

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: na - 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 28855c3 commit c72df11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/blas/ext/base/gsumkbn/lib/accessors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ function gsumkbn( N, x, strideX, offsetX ) {
7676
return N * get( xbuf, ix );
7777
}
7878
v = get( xbuf, ix );
79+
ix += strideX;
7980
sum = v;
8081

8182
// In order to preserve the sign of zero which can be lost during compensated summation below, find the first non-zero element...
@@ -91,7 +92,6 @@ function gsumkbn( N, x, strideX, offsetX ) {
9192
}
9293
} else {
9394
flg = true;
94-
ix += strideX;
9595
i = 1;
9696
}
9797
c = 0.0;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function gsumkbn( N, x, strideX, offsetX ) {
7272
return N * x[ ix ];
7373
}
7474
v = x[ ix ];
75+
ix += strideX;
7576
sum = v;
7677

7778
// In order to preserve the sign of zero which can be lost during compensated summation below, find the first non-zero element...
@@ -87,7 +88,6 @@ function gsumkbn( N, x, strideX, offsetX ) {
8788
}
8889
} else {
8990
flg = true;
90-
ix += strideX;
9191
i = 1;
9292
}
9393
c = 0.0;

0 commit comments

Comments
 (0)