summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-24 11:36:40 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-24 11:36:40 -0400
commitee396957226e2273bc60ede7192c27038c432f24 (patch)
treee87839dd6949461f5e3c9fb34071e7cea412b761 /valexpr.cc
parent171f79dda268b59d708f5002d1d616a71a30ecb5 (diff)
downloadfork-ledger-ee396957226e2273bc60ede7192c27038c432f24.tar.gz
fork-ledger-ee396957226e2273bc60ede7192c27038c432f24.tar.bz2
fork-ledger-ee396957226e2273bc60ede7192c27038c432f24.zip
Parsing now works again. And there was much rejoicing.
Diffstat (limited to 'valexpr.cc')
-rw-r--r--valexpr.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/valexpr.cc b/valexpr.cc
index 2c087aa3..645cfec3 100644
--- a/valexpr.cc
+++ b/valexpr.cc
@@ -87,7 +87,7 @@ value_t scope_t::resolve(const string& name) {
if (definition)
return definition->calc(*this);
else
- return value_t();
+ return NULL_VALUE;
}
void symbol_scope_t::define(const string& name, ptr_op_t def)
@@ -135,7 +135,7 @@ namespace {
temp.reset(expr);
} else {
temp.reset(new op_t(op_t::VALUE));
- temp->set_value(value_t());
+ temp->set_value(NULL_VALUE);
expr->compute(temp->as_value_lval(), details, context);
}
} else {