Skip to content

Commit ed5f594

Browse files
committed
Cleanup warnings
1 parent fe8e7f9 commit ed5f594

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/expression_evaluator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ Value CallExpression::CallGlobalRange(RenderContext& values)
281281
size_t count = static_cast<size_t>(m_stop - m_start);
282282
return static_cast<size_t>(count / m_step);
283283
}
284-
Value GetValueByIndex(int64_t idx) const
284+
Value GetValueByIndex(int64_t idx) const override
285285
{
286286
return m_start + m_step * idx;
287287
}

src/value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ struct SubscriptionVisitor : public boost::static_visitor<Value>
113113
if (index < 0 || static_cast<size_t>(index) >= values.size())
114114
return Value();
115115

116-
return values[index];
116+
return values[static_cast<size_t>(index)];
117117
}
118118

119119
Value operator() (const GenericList& values, const int64_t index) const

0 commit comments

Comments
 (0)