diff options
author | Vicnet <vo.publique@gmail.com> | 2013-10-07 08:23:09 (GMT) |
---|---|---|
committer | Vicnet <vo.publique@gmail.com> | 2013-10-07 14:04:42 (GMT) |
commit | ce27757712c7621cbd81676b6d399976412d7ca0 (patch) | |
tree | 6d8db263d6cb79305e137613923d7d7beb9de93c /src/expr.cc | |
parent | 119bf37cb343ec9873698a76150bca77b4d8e0b4 (diff) |
use explicit Value::RangeType for clarity
Diffstat (limited to 'src/expr.cc')
-rw-r--r-- | src/expr.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr.cc b/src/expr.cc index 8500d13..594fccf 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -119,7 +119,8 @@ Value Expression::evaluate(const Context *context) const Value v2 = this->children[1]->evaluate(context); Value v3 = this->children[2]->evaluate(context); if (v1.type() == Value::NUMBER && v2.type() == Value::NUMBER && v3.type() == Value::NUMBER) { - return Value(v1.toDouble(), v2.toDouble(), v3.toDouble()); + Value::RangeType range(v1.toDouble(), v2.toDouble(), v3.toDouble()); + return Value(range); } return Value(); } |