Skip to content

Commit a3a89a3

Browse files
committed
fix: fix pointers and bounds
--- 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: na - 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: missing_dependencies - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 3bf074f commit a3a89a3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/node_modules/@stdlib/blas/base/cgemv/src/cgemv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void API_SUFFIX(c_cgemv)( const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE trans
8989
vala = v;
9090
}
9191
if ( LDA < v ) {
92-
c_xerbla( 10, "c_cgemv", "Error: invalid argument. Seventh argument must be greater than or equal to max(1,%d). Value: `%d`.", vala, LDA );
92+
c_xerbla( 7, "c_cgemv", "Error: invalid argument. Seventh argument must be greater than or equal to max(1,%d). Value: `%d`.", vala, LDA );
9393
return;
9494
}
9595
zero = stdlib_complex64( 0.0, 0.0 );

lib/node_modules/@stdlib/blas/base/cgemv/src/cgemv_ndarray.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ void API_SUFFIX(c_cgemv_ndarray)( const CBLAS_TRANSPOSE trans, const CBLAS_INT M
172172
for ( i1 = 0; i1 < ylen; i1++ ) {
173173
tmp = zero;
174174
ix = offsetX;
175-
for ( i0 = 0; i0 < ylen; i0++ ) {
175+
for ( i0 = 0; i0 < xlen; i0++ ) {
176176
if ( trans == CblasConjTrans ) {
177177
aval = stdlib_complex64_conj( ap[ ia ] );
178178
} else {
179179
aval = ap[ ia ];
180180
}
181181
tmp = stdlib_base_complex64_muladd( aval, xp[ ix ], tmp );
182-
iy += strideY;
182+
ix += strideX;
183183
ia += da0;
184184
}
185185
yp[ iy ] = stdlib_base_complex64_muladd( alpha, tmp, yp[ iy ] );

0 commit comments

Comments
 (0)