Skip to content

Commit

Permalink
Merge pull request #4647 from ibuclaw/foreach_key
Browse files Browse the repository at this point in the history
Use isLP64 to determine whether the foreach key type should be int or long
  • Loading branch information
yebblies committed May 14, 2015
2 parents 36ba62d + c2be00d commit 4982d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/statement.c
Expand Up @@ -1843,7 +1843,7 @@ Statement *ForeachStatement::semantic(Scope *sc)
TY keyty = p->type->ty;
if (keyty != Tint32 && keyty != Tuns32)
{
if (global.params.is64bit)
if (global.params.isLP64)
{
if (keyty != Tint64 && keyty != Tuns64)
{
Expand Down

0 comments on commit 4982d13

Please sign in to comment.