[PPL-devel] [GIT] ppl/ppl(master): Warnings avoided.
Roberto Bagnara
bagnara at cs.unipr.it
Mon Jul 13 14:48:03 CEST 2009
Module: ppl/ppl
Branch: master
Commit: 78a7c4b60e7e5a9b7b2a6995263ac701105d5ee9
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=78a7c4b60e7e5a9b7b2a6995263ac701105d5ee9
Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date: Mon Jul 13 14:47:51 2009 +0200
Warnings avoided.
---
src/Boundary.defs.hh | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/Boundary.defs.hh b/src/Boundary.defs.hh
index df927c9..db66bbf 100644
--- a/src/Boundary.defs.hh
+++ b/src/Boundary.defs.hh
@@ -122,10 +122,12 @@ set_minus_infinity(Boundary_Type type, T& x, Info& info, bool open = false) {
|| std::numeric_limits<T>::has_infinity,
"minus infinity is not representable");
*/
- if (open)
+ if (open) {
PPL_ASSERT(type == LOWER);
- else
+ }
+ else {
PPL_ASSERT(Info::may_contain_infinity);
+ }
Result r;
if (Info::store_special) {
PPL_ASSERT(type == LOWER);
@@ -148,10 +150,12 @@ set_plus_infinity(Boundary_Type type, T& x, Info& info, bool open = false) {
|| std::numeric_limits<T>::has_infinity,
"minus infinity is not representable");
*/
- if (open)
+ if (open) {
PPL_ASSERT(type == UPPER);
- else
+ }
+ else {
PPL_ASSERT(Info::may_contain_infinity);
+ }
Result r;
if (Info::store_special) {
PPL_ASSERT(type == UPPER);
More information about the PPL-devel
mailing list