summaryrefslogtreecommitdiff
path: root/impl/Complete.hpp
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-06-15 15:48:16 +1000
committerCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-06-15 15:48:16 +1000
commita61d8b829afab13593e254fc69e260b6346939dc (patch)
tree80718961a7242840db56eec82c792d7ca07eb654 /impl/Complete.hpp
parente00d7e6486739221f4d5adea1583743d3e23acfd (diff)
Parameterise fixpoint and strategy improvement
(command-line arguments specify which to use) Also: - Fix up Complete<T> to work comparing `inf` to 1 (stupid bug) - Clean up the systems/ folder a bit - Change the printed output to differentiate variables and constants (!v/!c, respectively) - Perform a slight optimisation to the strategy-iteration process
Diffstat (limited to 'impl/Complete.hpp')
-rw-r--r--impl/Complete.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/impl/Complete.hpp b/impl/Complete.hpp
index 22e060a..11f2f83 100644
--- a/impl/Complete.hpp
+++ b/impl/Complete.hpp
@@ -81,7 +81,7 @@ struct Complete {
return other._infinity && ((_value < 0 && other._value < 0) ||
(_value > 0 && other._value > 0));
} else {
- return _value == other._value;
+ return !other._infinity && (_value == other._value);
}
}
bool operator!=(const Complete& other) const {