diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-10 12:22:19 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-10 12:22:19 -0500 |
commit | 5ffa987daf4d97c52066e4c28733d826d3726297 (patch) | |
tree | ab058dec32702ccce9d1f7cacacb5b5c157d6798 /src/query.cc | |
parent | 9e07e61fadf7f3c9d1fd32a3805f6e97163eba15 (diff) | |
parent | 3f638d355c977fd5513ab1db380c5813599f3664 (diff) | |
download | fork-ledger-5ffa987daf4d97c52066e4c28733d826d3726297.tar.gz fork-ledger-5ffa987daf4d97c52066e4c28733d826d3726297.tar.bz2 fork-ledger-5ffa987daf4d97c52066e4c28733d826d3726297.zip |
Merge branch 'next'
Diffstat (limited to 'src/query.cc')
-rw-r--r-- | src/query.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/query.cc b/src/query.cc index 98a3de1d..e48e65b5 100644 --- a/src/query.cc +++ b/src/query.cc @@ -307,15 +307,14 @@ query_t::parser_t::parse_query_term(query_t::lexer_t::token_t::kind_t tok_contex throw_(parse_error, _("Metadata equality operator not followed by term")); - expr_t::ptr_op_t cons = new expr_t::op_t(expr_t::op_t::O_CONS); - expr_t::ptr_op_t arg2 = new expr_t::op_t(expr_t::op_t::VALUE); assert(tok.value); arg2->set_value(mask_t(*tok.value)); - cons->set_left(arg1); - cons->set_right(arg2); - node->set_right(cons); + node->set_right(expr_t::op_t::new_node + (expr_t::op_t::O_SEQ, + expr_t::op_t::new_node + (expr_t::op_t::O_CONS, arg1, arg2))); } else { node->set_right(arg1); } |