Navigation Menu

Skip to content

Commit

Permalink
Explicitly 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 598f38c commit 1a7e351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.c
Expand Up @@ -509,7 +509,7 @@ Expression *ArrayInitializer::toExpression(Type *tx)
switch (t->ty)
{
case Tsarray:
edim = ((TypeSArray *)t)->dim->toInteger();
edim = (size_t)((TypeSArray *)t)->dim->toInteger();
break;

case Tpointer:
Expand Down

0 comments on commit 1a7e351

Please sign in to comment.