Definition of unit32_t based on an implementation-dependent type?
David Wuertele
wuertele@gmail.com
Tue Oct 20 17:32:00 GMT 2009
The C standard says that the type 'int' is implementation-dependent.
Yet stdint.h uses 'int' to typedef 32 bit values:
typedef unsigned int uint32_t;
typedef int int32_t;
The 'int' and 'unsigned int' types can (and do) have different sizes
dependent on the compiler and the machine. So 'int32_t' and
'uint32_t' will not necessarily have 32-bit sizes. Either this is a
bug, or it is very misleading!
Dave
More information about the Libc-help
mailing list