summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-10 18:38:52 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-10 18:38:52 -0400
commite1d6c4bff27f41fbe57738205ba3548554380a73 (patch)
tree270da6408bfdbbc10787e6ca1439aa715d7a6fbe /valexpr.cc
parente414123ecb472d1f86a2f1cfdbd2732144c20f0d (diff)
downloadfork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.tar.gz
fork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.tar.bz2
fork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.zip
interval_t objects now play nicely with python. see the bottom of main.py
Diffstat (limited to 'valexpr.cc')
-rw-r--r--valexpr.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/valexpr.cc b/valexpr.cc
index d868f9b6..06f7dd09 100644
--- a/valexpr.cc
+++ b/valexpr.cc
@@ -512,9 +512,8 @@ value_expr_t * parse_value_term(std::istream& in)
node.reset(new value_expr_t(value_expr_t::CONSTANT_T));
- std::string datespec = buf;
- std::istringstream stream(datespec);
- interval_t::parse(stream, &node->constant_t, NULL);
+ interval_t timespan(buf);
+ node->constant_t = timespan.first();
break;
}