Skip to content

Commit e1fa05b

Browse files
committed
fix: minor lint
--- 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: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: passed - 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 df3b9ef commit e1fa05b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/node_modules/@stdlib/lapack/base/dlassq/benchmark/c/benchmark.size.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ static double benchmark1( int iterations, int len ) {
112112
scale = 1.0;
113113
sumsq = 0.0;
114114
c_dlassq( len, X, 1, &scale, &sumsq );
115-
if ( scale != scale ) {
115+
if ( scale != scale || sumsq != sumsq ) {
116116
printf( "should not return NaN\n" );
117117
break;
118118
}
119119
}
120120
elapsed = tic() - t;
121121

122-
if ( scale != scale ) {
122+
if ( scale != scale || sumsq != sumsq ) {
123123
printf( "should not return NaN\n" );
124124
}
125125
free( X );
@@ -151,14 +151,14 @@ static double benchmark2( int iterations, int len ) {
151151
scale = 1.0;
152152
sumsq = 0.0;
153153
c_dlassq_ndarray( len, X, 1, 0, &scale, &sumsq );
154-
if ( scale != scale ) {
154+
if ( scale != scale || sumsq != sumsq ) {
155155
printf( "should not return NaN\n" );
156156
break;
157157
}
158158
}
159159
elapsed = tic() - t;
160160

161-
if ( scale != scale ) {
161+
if ( scale != scale || sumsq != sumsq ) {
162162
printf( "should not return NaN\n" );
163163
}
164164
free( X );

0 commit comments

Comments
 (0)