Skip to content

Commit 205bebc

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 7be4df1 commit 205bebc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function ssumkbn( N, x, strideX, offsetX ) {
6868
return f32( N * x[ ix ] );
6969
}
7070
v = x[ ix ];
71+
ix += strideX;
7172
sum = v;
7273

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

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

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

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

0 commit comments

Comments
 (0)