From: Paul F. <pj...@wa...> - 2020-08-17 08:53:53
|
> This is incorrect for C99 and indeed any compiler that supports "long long". On such systems, the integer constant 3222829167 > has type "long long", and it is absolutely guaranteed to preserve that value when cast to unsigned. Assuming 32-bit int, of course. It is also incorrect for C90. See here https://en.cppreference.com/w/c/language/integer_constant. For C90 an integer constant without suffix can be int, long int or unsigned long int. In this case is it would be unsigned long int. A+ Paul |