From e1d6c4bff27f41fbe57738205ba3548554380a73 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 10 Sep 2004 18:38:52 -0400 Subject: interval_t objects now play nicely with python. see the bottom of main.py --- valexpr.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'valexpr.cc') 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; } -- cgit v1.2.3