[PPL-devel] [GIT] ppl/ppl(master): Avoid implicit coversion to bool.
Enea Zaffanella
zaffanella at cs.unipr.it
Thu Mar 1 22:36:59 CET 2012
Module: ppl/ppl
Branch: master
Commit: ef23118849edd5ed1003afae43466566e63e1616
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=ef23118849edd5ed1003afae43466566e63e1616
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Thu Mar 1 22:17:42 2012 +0100
Avoid implicit coversion to bool.
Detected by Boolean service utypflag.
---
src/assert.hh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/assert.hh b/src/assert.hh
index 09c84a1..35c2ef1 100644
--- a/src/assert.hh
+++ b/src/assert.hh
@@ -61,7 +61,7 @@ site: http://bugseng.com/products/ppl/ . */
W_Traits::Threshold old_weight__ = W_Traits::weight; \
PPL_ASSERT_IMPL_(cond__); \
PPL_ASSERT_IMPL_(old_weight__ == W_Traits::weight \
- && "PPL_ASSERT_HEAVY have to be used here"); \
+ && ("PPL_ASSERT_HEAVY has to be used here" != 0)); \
} while (false)
#endif // !defined(NDEBUG) && PPL_DEBUG_PPL_ASSERT
More information about the PPL-devel
mailing list