From 80c472733baf078ac275c02adf0bafff82803464 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 16 Mar 2006 11:27:08 +0000 Subject: *** no comment *** --- valexpr.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'valexpr.cc') 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: { -- cgit v1.2.3