C Enum Sizes; or, How MSVC Ignores The Standard Once Again
Summary
Explains how C enums derive their underlying type and contrasts GCC/Clang and MSVC behavior with large constant values. Includes a reproducible scenario where a 32-bit enum under MSVC loses information, and offers practical workarounds for cross-compiler and FFI contexts.