diff options
author | Peter Carbonetto | 2017-10-10 13:07:14 -0500 |
---|---|---|
committer | Peter Carbonetto | 2017-10-10 13:07:14 -0500 |
commit | e87cfa17f11e8feb3fc0619507065da1de40ce58 (patch) | |
tree | 2a4e46468fb1fcc493e77d830febb88ce0d68304 /src/debug.cpp | |
parent | 5737c5c0cf24982e743ca827d43c9d4bb59f8f08 (diff) | |
download | pangemma-e87cfa17f11e8feb3fc0619507065da1de40ce58.tar.gz |
Fixed warning with assignment in if statement.
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index 6fa17bc..b7a69f1 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -34,8 +34,8 @@ void do_validate_K(const gsl_matrix *K, bool do_check, bool strict, const char * warning_at_msg(__file,__line,"K is ill conditioned!"); if (!isMatrixSymmetric(K)) fail_at_msg(strict,__file,__line,"K is not symmetric!" ); - bool negative_values; - if (negative_values = has_negative_values_but_one(eigenvalues)) { + bool negative_values = has_negative_values_but_one(eigenvalues); + if (negative_values) { warning_at_msg(__file,__line,"K has more than one negative eigenvalues!"); } if (count_small>0 && negative_values && !isMatrixPositiveDefinite(K)) |