summaryrefslogtreecommitdiff
path: root/expr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'expr.cc')
-rw-r--r--expr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/expr.cc b/expr.cc
index f0e45d7..81fe7b3 100644
--- a/expr.cc
+++ b/expr.cc
@@ -73,7 +73,7 @@ Value Expression::evaluate(const Context *context) const
Value v1 = children[0]->evaluate(context);
Value v2 = children[1]->evaluate(context);
if (v1.type == Value::VECTOR && v2.type == Value::NUMBER) {
- int i = v2.num;
+ int i = (int)(v2.num);
if (i < v1.vec.size())
return *v1.vec[i];
}
contact: Jan Huwald // Impressum