[GIT] ppl/ppl(master): Make comparison against zero explicit.

Module: ppl/ppl Branch: master Commit: e3c4d96c9830ac4233b84d178810b2dd3fcd7f9e URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=e3c4d96c9830a...
Author: Enea Zaffanella zaffanella@cs.unipr.it Date: Wed Feb 15 17:37:13 2012 +0100
Make comparison against zero explicit. Detected by ECLAIR service utypflag.
---
src/Box_Status.inlines.hh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Box_Status.inlines.hh b/src/Box_Status.inlines.hh index acd8347..0153073 100644 --- a/src/Box_Status.inlines.hh +++ b/src/Box_Status.inlines.hh @@ -62,7 +62,7 @@ Box<ITV>::Status::test_all(flags_t mask) const { template <typename ITV> inline bool Box<ITV>::Status::test_any(flags_t mask) const { - return flags & mask; + return (flags & mask) != 0; }
template <typename ITV>
participants (1)
-
Enea Zaffanella