summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'valexpr.cc')
-rw-r--r--valexpr.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/valexpr.cc b/valexpr.cc
index 00fce46f..11c2197d 100644
--- a/valexpr.cc
+++ b/valexpr.cc
@@ -404,7 +404,10 @@ void value_expr_t::compute(value_t& result, const details_t& details) const
case O_NOT:
left->compute(result, details);
- result.negate();
+ if (result)
+ result = 0L;
+ else
+ result = 1L;
break;
case O_QUES: {