From 2ea075dc4f48b5212a2b404e59ce16147871ba86 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Jun 2010 18:39:26 -0400 Subject: Report error context in expressions more precisely --- src/account.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/account.cc') diff --git a/src/account.cc b/src/account.cc index 809b6e46..ceeb1c12 100644 --- a/src/account.cc +++ b/src/account.cc @@ -295,7 +295,7 @@ namespace { foreach (post_t * p, account.posts) { bind_scope_t bound_scope(args, *p); - if (expr->calc(bound_scope).to_boolean()) + if (expr->calc(bound_scope, args.locus, args.depth).to_boolean()) return true; } return false; @@ -308,7 +308,7 @@ namespace { foreach (post_t * p, account.posts) { bind_scope_t bound_scope(args, *p); - if (! expr->calc(bound_scope).to_boolean()) + if (! expr->calc(bound_scope, args.locus, args.depth).to_boolean()) return false; } return true; -- cgit v1.2.3