Skip to content

Commit

Permalink
Cast to size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Nov 14, 2013
1 parent 62ab60a commit 90b2336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interpret.c
Expand Up @@ -3894,9 +3894,9 @@ bool interpretAssignToIndex(InterState *istate, Loc loc,
if (existingAE)
{
if (newval->op == TOKstructliteral)
assignInPlace((*existingAE->elements)[indexToModify], newval);
assignInPlace((*existingAE->elements)[(size_t)indexToModify], newval);
else
(*existingAE->elements)[indexToModify] = newval;
(*existingAE->elements)[(size_t)indexToModify] = newval;
return true;
}
if (existingSE)
Expand Down

0 comments on commit 90b2336

Please sign in to comment.