summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/post.cc b/src/post.cc
index bbf43227..675749fc 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -353,12 +353,14 @@ namespace {
foreach (post_t * p, post.xact->posts) {
bind_scope_t bound_scope(args, *p);
if (p == &post && args.has<expr_t::ptr_op_t>(1) &&
- ! args.get<expr_t::ptr_op_t>(1)->calc(bound_scope).to_boolean()) {
+ ! args.get<expr_t::ptr_op_t>(1)
+ ->calc(bound_scope, args.locus, args.depth).to_boolean()) {
// If the user specifies any(EXPR, false), and the context is a
// posting, then that posting isn't considered by the test.
; // skip it
}
- else if (expr->calc(bound_scope).to_boolean()) {
+ else if (expr->calc(bound_scope, args.locus,
+ args.depth).to_boolean()) {
return true;
}
}
@@ -373,12 +375,14 @@ namespace {
foreach (post_t * p, post.xact->posts) {
bind_scope_t bound_scope(args, *p);
if (p == &post && args.has<expr_t::ptr_op_t>(1) &&
- ! args.get<expr_t::ptr_op_t>(1)->calc(bound_scope).to_boolean()) {
+ ! args.get<expr_t::ptr_op_t>(1)
+ ->calc(bound_scope, args.locus, args.depth).to_boolean()) {
// If the user specifies any(EXPR, false), and the context is a
// posting, then that posting isn't considered by the test.
; // skip it
}
- else if (! expr->calc(bound_scope).to_boolean()) {
+ else if (! expr->calc(bound_scope, args.locus,
+ args.depth).to_boolean()) {
return false;
}
}