[PPL-devel] [GIT] ppl/ppl(master): Get rid of a comparison warning.
Abramo Bagnara
abramo.bagnara at gmail.com
Sun May 17 14:56:17 CEST 2009
Module: ppl/ppl
Branch: master
Commit: 0a171dbe14eed7901117a045b7a3e24783c4178b
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=0a171dbe14eed7901117a045b7a3e24783c4178b
Author: Abramo Bagnara <abramo.bagnara at gmail.com>
Date: Sun May 17 14:55:14 2009 +0200
Get rid of a comparison warning.
---
src/checked.inlines.hh | 6 +++---
src/checked_float.inlines.hh | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/checked.inlines.hh b/src/checked.inlines.hh
index 34d7ce6..9f40671 100644
--- a/src/checked.inlines.hh
+++ b/src/checked.inlines.hh
@@ -404,9 +404,9 @@ inline Result_Relation
sgn_generic(const Type& x) {
if (x > 0)
return VR_GT;
- if (x < 0)
- return VR_LT;
- return VR_EQ;
+ if (x == 0)
+ return VR_EQ;
+ return VR_LT;
}
template <typename T1, typename T2, typename Enable = void>
diff --git a/src/checked_float.inlines.hh b/src/checked_float.inlines.hh
index 4dd7fda..92455b9 100644
--- a/src/checked_float.inlines.hh
+++ b/src/checked_float.inlines.hh
@@ -722,7 +722,7 @@ sgn_float(const Type x) {
return VR_LT;
if (x == 0)
return VR_EQ;
- return VR_EMPTY;
+ return VR_EMPTY;
}
template <typename Policy1, typename Policy2, typename Type>
More information about the PPL-devel
mailing list