cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 0b153ef15c12a5a27f9a65000a3d7036b1829366
parent 3d91966b0dcfe0bd0fc3a779a63d49546e46aea8
Author: Michael Forney <mforney@mforney.org>
Date:   Tue,  2 Jun 2020 14:04:51 -0700

decl: Improve error message for out-of-range enum constants

Diffstat:
Mdecl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);