From 3ba15e81a40d32c1db2f284d55b39a3f3e0f341f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 25 Feb 2006 13:40:14 +0000 Subject: *** no comment *** --- valexpr.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'valexpr.cc') diff --git a/valexpr.cc b/valexpr.cc index 013cfad7..00fce46f 100644 --- a/valexpr.cc +++ b/valexpr.cc @@ -348,6 +348,8 @@ void value_expr_t::compute(value_t& result, const details_t& details) const if (right) { assert(right->kind == O_ARG); switch (right->left->kind) { + case F_NOW: + break; // already set to now case DATE: if (details.xact && transaction_has_xdata(*details.xact) && transaction_xdata_(*details.xact).date) @@ -377,6 +379,8 @@ void value_expr_t::compute(value_t& result, const details_t& details) const std::time_t moment = terminus; if (right) { switch (right->kind) { + case F_NOW: + break; // already set to now case DATE: if (details.xact && transaction_has_xdata(*details.xact) && transaction_xdata_(*details.xact).date) -- cgit v1.2.3