summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
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;
}