diff options
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc index 797c144c..f4df3329 100644 --- a/src/value.cc +++ b/src/value.cc @@ -1193,6 +1193,13 @@ void value_t::in_place_negate() case BALANCE: as_balance_lval().in_place_negate(); return; + case SEQUENCE: { + value_t temp; + foreach (const value_t& value, as_sequence()) + temp.push_back(- value); + *this = temp; + return; + } default: break; } @@ -1222,6 +1229,13 @@ void value_t::in_place_not() case STRING: set_boolean(as_string().empty()); return; + case SEQUENCE: { + value_t temp; + foreach (const value_t& value, as_sequence()) + temp.push_back(! value); + *this = temp; + return; + } default: break; } |