Skip to content

Commit

Permalink
Use isLP64 to determine whether the foreach key type should be int or…
Browse files Browse the repository at this point in the history
… long.
  • Loading branch information
ibuclaw committed May 14, 2015
1 parent 36ba62d commit c2be00d
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 c2be00d

Please sign in to comment.