diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-07-17 13:20:49 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-07-17 13:20:49 +0200 |
commit | 37f4bdd97df454f2c85c6047d190f5db21c3a09b (patch) | |
tree | d2208f3e11d25773c0cd834369c6170a410c303a /test/main.h | |
parent | 2b2cd85694c7d340eb8b3d3ba944d33360666381 (diff) |
Fix VERIFY_EVALUATION_COUNT(EXPR,N) with a complex expression as N
Diffstat (limited to 'test/main.h')
-rw-r--r-- | test/main.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/main.h b/test/main.h index 95bbc9eb0..51399f7ad 100644 --- a/test/main.h +++ b/test/main.h @@ -122,8 +122,8 @@ inline void on_temporary_creation(long int size) { #define VERIFY_EVALUATION_COUNT(XPR,N) {\ nb_temporaries = 0; \ XPR; \ - if(nb_temporaries!=N) { std::cerr << "nb_temporaries == " << nb_temporaries << "\n"; }\ - VERIFY( (#XPR) && nb_temporaries==N ); \ + if(nb_temporaries!=(N)) { std::cerr << "nb_temporaries == " << nb_temporaries << "\n"; }\ + VERIFY( (#XPR) && nb_temporaries==(N) ); \ } #endif |