Цитата(ViKo @ Oct 5 2017, 12:38)

Но хотел бы прямо в перечислении задать беззнаковое целое.
Насколько я помню стандарт С, там сказано, что enum эквивалентен int (а не unsigned).
Угу, нашел (С99):
6.7.2.2 Enumeration specifiers
Цитата
Semantics
3
The identifiers in an enumerator list are declared as constants that have type int and may appear wherever such are permitted.
Хотя:
Цитата
4
Each enumerated type shall be compatible with char, a signed integer type, or an unsigned integer type 110).
The choice of type is implementation-defined, but shall be capable of representing the values of all the members of the enumeration.
110: An implementation may delay the choice of which integer type until all enumeration constants have been seen.
Попробуйте ему добавить в enum константу, которая не влезает в int (0xFFFFFFFFu например)