Skip to content

Commit 7be4df1

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 c72df11 commit 7be4df1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ function gsumkbn2( N, x, strideX, offsetX ) {
7979
return N * get( xbuf, ix );
8080
}
8181
v = get( xbuf, ix );
82+
ix += strideX;
8283
sum = v;
8384

8485
// In order to preserve the sign of zero which can be lost during compensated summation below, find the first non-zero element...
@@ -94,7 +95,6 @@ function gsumkbn2( N, x, strideX, offsetX ) {
9495
}
9596
} else {
9697
flg = true;
97-
ix += strideX;
9898
i = 1;
9999
}
100100
ccs = 0.0; // second order correction term for lost low order bits

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ function gsumkbn2( N, x, strideX, offsetX ) {
7575
return N * x[ ix ];
7676
}
7777
v = x[ ix ];
78+
ix += strideX;
7879
sum = v;
7980

8081
// In order to preserve the sign of zero which can be lost during compensated summation below, find the first non-zero element...
@@ -90,7 +91,6 @@ function gsumkbn2( N, x, strideX, offsetX ) {
9091
}
9192
} else {
9293
flg = true;
93-
ix += strideX;
9494
i = 1;
9595
}
9696
ccs = 0.0; // second order correction term for lost low order bits

0 commit comments

Comments
 (0)