[PPL-devel] [GIT] ppl/ppl(master): Exploit operator| overloading for Rounding_Dir.
Enea Zaffanella
zaffanella at cs.unipr.it
Mon Feb 20 17:32:18 CET 2012
Module: ppl/ppl
Branch: master
Commit: bb321df039bce4988dc316523b88546e8c2dd057
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=bb321df039bce4988dc316523b88546e8c2dd057
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Mon Feb 20 17:28:02 2012 +0100
Exploit operator| overloading for Rounding_Dir.
---
src/Boundary.defs.hh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Boundary.defs.hh b/src/Boundary.defs.hh
index 72d8858..58fb3cf 100644
--- a/src/Boundary.defs.hh
+++ b/src/Boundary.defs.hh
@@ -57,7 +57,7 @@ enum Boundary_Type {
inline Rounding_Dir
round_dir_check(Boundary_Type t, bool check = false) {
if (check)
- return static_cast<Rounding_Dir>(t | ROUND_STRICT_RELATION);
+ return static_cast<Rounding_Dir>(t) | ROUND_STRICT_RELATION;
else
return static_cast<Rounding_Dir>(t);
}
More information about the PPL-devel
mailing list