Skip to content

Commit d76695b

Browse files
committed
fix: update error check and messages
--- 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: 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 edcb3f2 commit d76695b

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/blas/base/dger/src

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void API_SUFFIX(c_dger)( const CBLAS_LAYOUT layout, const CBLAS_INT M, const CBL
6161
return;
6262
}
6363
if ( strideY == 0 ) {
64-
c_xerbla( 8, "c_dger", "Error: invalid argument. Eighth argument must be nonzero. Value: `%d`.", strideX );
64+
c_xerbla( 8, "c_dger", "Error: invalid argument. Eighth argument must be nonzero. Value: `%d`.", strideY );
6565
return;
6666
}
6767
if ( layout == CblasColMajor ) {
@@ -75,8 +75,8 @@ void API_SUFFIX(c_dger)( const CBLAS_LAYOUT layout, const CBLAS_INT M, const CBL
7575
} else {
7676
vala = v;
7777
}
78-
if ( LDA < v ) {
79-
c_xerbla( 10, "c_dger", "Error: invalid argument. Tenth argument must be greater than or equal to max(1,%d). Value: `%d`.", vala, LDA );
78+
if ( LDA < vala ) {
79+
c_xerbla( 10, "c_dger", "Error: invalid argument. Tenth argument must be greater than or equal to max(1,%d). Value: `%d`.", v, LDA );
8080
return;
8181
}
8282
// Check whether we can avoid computation altogether...

0 commit comments

Comments
 (0)