summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-03 17:47:14 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-03 17:47:14 -0400
commit918f76b263592bcd52704fec17ae84eb06d4d0c2 (patch)
tree4be0de77080461e1f2463b63dfde9fb4995506b0
parent6bd82c6bcdd75a4c2194bc645b0955755ba0d660 (diff)
downloadfork-ledger-918f76b263592bcd52704fec17ae84eb06d4d0c2.tar.gz
fork-ledger-918f76b263592bcd52704fec17ae84eb06d4d0c2.tar.bz2
fork-ledger-918f76b263592bcd52704fec17ae84eb06d4d0c2.zip
Don't allow boolean operations to be applied to masks.
-rw-r--r--src/value.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/value.cc b/src/value.cc
index 13b90057..e9eaf5cb 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -1286,9 +1286,6 @@ void value_t::in_place_not()
case STRING:
set_boolean(as_string().empty());
return;
- case MASK:
- set_boolean(as_mask().empty());
- return;
default:
break;
}
@@ -1315,8 +1312,6 @@ bool value_t::is_realzero() const
return as_balance_pair().is_realzero();
case STRING:
return as_string().empty();
- case MASK:
- return as_mask().empty();
case SEQUENCE:
return as_sequence().empty();
@@ -1348,8 +1343,6 @@ bool value_t::is_zero() const
return as_balance_pair().is_zero();
case STRING:
return as_string().empty();
- case MASK:
- return as_mask().empty();
case SEQUENCE:
return as_sequence().empty();