Skip to content

Commit

Permalink
improve overflow error message
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Sep 21, 2013
1 parent baddfba commit 903ee60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enum.c
Expand Up @@ -656,7 +656,7 @@ void EnumMember::semantic(Scope *sc)
e = e->ctfeInterpret();
if (e->toInteger())
{
error("overflow of enum value %s", eprev->toChars());
error("initialization with (%s + 1) causes overflow", eprev->toChars());
goto Lerrors;
}

Expand Down

0 comments on commit 903ee60

Please sign in to comment.