Fix index type

This commit is contained in:
Jason Turner 2016-03-10 14:45:07 -07:00
parent 91ba9e25c0
commit 11ee71ba27

View File

@ -77,7 +77,7 @@ namespace chaiscript
const std::vector<Boxed_Value> &params, const Type_Conversions_State &t_conversions)
{
try {
int i = 0;
std::vector<Boxed_Value>::size_type i = 0;
(void)params; (void)t_conversions;
// this is ok because the order of evaluation of initializer lists is well defined
(void)std::initializer_list<int>{(boxed_cast<Params>(params[i++], &t_conversions), 0)...};