summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-16 11:27:08 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:48:44 -0400
commit80c472733baf078ac275c02adf0bafff82803464 (patch)
treeaaa9a7d4c1d9e7328871244ec3511d6510d5b2b6 /valexpr.cc
parent022594bb2f48c115b55ac786aa160b546ff318f8 (diff)
downloadfork-ledger-80c472733baf078ac275c02adf0bafff82803464.tar.gz
fork-ledger-80c472733baf078ac275c02adf0bafff82803464.tar.bz2
fork-ledger-80c472733baf078ac275c02adf0bafff82803464.zip
*** no comment ***
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: {