From 0b153ef15c12a5a27f9a65000a3d7036b1829366 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 2 Jun 2020 14:04:51 -0700 Subject: decl: Improve error message for out-of-range enum constants --- decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decl.c b/decl.c index 5a8712b..94e4b15 100644 --- a/decl.c +++ b/decl.c @@ -229,7 +229,7 @@ tagspec(struct scope *s) } } else if (i == 1ull << 32) { invalid: - error(&tok.loc, "enumerator '%s' value cannot be represented as 'int'", name); + error(&tok.loc, "enumerator '%s' value cannot be represented as 'int' or 'unsigned int'", name); } d = mkdecl(DECLCONST, &typeint, QUALNONE, LINKNONE); d->value = mkintconst(t->repr, i); -- cgit v1.2.3