-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christoph Hormann wrote:
|>> And the typedef cited above is a serious affront to the standard...
|>
|>
|> No, it has implementation-defined behaviour. Even that is irrelevant
|> if the range is checked/enforced.
|
|
| Then don't name it 'uint32' (which implies being 32 bit).
|
You do know that the ISO-C99 standard defines uint32_t for an int
type that's guaranteed to be 32 bits, don't you? It's in the stdint.h
header (see:
http://www.dinkumware.com/manuals/reader.aspx?b=c/&h=stdint.html for
details)
Jerome
- --
******************************
* Jerome M. Berger *
* mailto:jbe### [at] ifrance com *
* http://jeberger.free.fr/ *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBOM3aqIYJdJhyixIRAuAzAKCGyd6LHl39FcR96J3iy+BnN6qnfwCfUK7g
1/pUJSC1lz/ckIP339DLZt4=
=fNEy
-----END PGP SIGNATURE-----
Post a reply to this message
|