Skip to content

Commit

Permalink
Cleanup warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
flexferrum committed May 4, 2018
1 parent fe8e7f9 commit ed5f594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/expression_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ Value CallExpression::CallGlobalRange(RenderContext& values)
size_t count = static_cast<size_t>(m_stop - m_start);
return static_cast<size_t>(count / m_step);
}
Value GetValueByIndex(int64_t idx) const
Value GetValueByIndex(int64_t idx) const override
{
return m_start + m_step * idx;
}
Expand Down
2 changes: 1 addition & 1 deletion src/value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ struct SubscriptionVisitor : public boost::static_visitor<Value>
if (index < 0 || static_cast<size_t>(index) >= values.size())
return Value();

return values[index];
return values[static_cast<size_t>(index)];
}

Value operator() (const GenericList& values, const int64_t index) const
Expand Down

0 comments on commit ed5f594

Please sign in to comment.