[GIT] ppl/ppl(master): Let is_inf_float() return a Boolean value, rather than an integer.

Module: ppl/ppl Branch: master Commit: 2e81747bef37b0c49447ca598e75312691526bf8 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=2e81747bef37b...
Author: Enea Zaffanella zaffanella@cs.unipr.it Date: Wed Feb 15 08:26:47 2012 +0100
Let is_inf_float() return a Boolean value, rather than an integer. Detected by ECLAIR service utypflag.
---
src/checked_float.inlines.hh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/checked_float.inlines.hh b/src/checked_float.inlines.hh index 77c3f13..7c06757 100644 --- a/src/checked_float.inlines.hh +++ b/src/checked_float.inlines.hh @@ -177,7 +177,7 @@ is_nan_float(const T v) { }
template <typename Policy, typename T> -inline int +inline bool is_inf_float(const T v) { Float<T> f(v); return CHECK_P(Policy::has_infinity, f.u.binary.is_inf());
participants (1)
-
Enea Zaffanella