stdint.h bug

Eric Blake ebb9@byu.net
Fri Apr 6 01:35:00 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Corinna Vinschen on 4/4/2007 1:38 AM:
> On Apr  3 19:29, Eric Blake wrote:
>> 	* include/stdint.h (WINT_MIN, WINT_MAX): Fix definition.
> 
> Thanks, applied.

A two-line patch, and I _still_ managed to botch it.  POSIX requires that
WINT_MIN be unsigned if (wint_t)0 promotes to an unsigned type.

Or in other words, (-1 < WINT_MIN) == ((wint_t) -1 < 0) must be true.

2007-04-05  Eric Blake  <ebb9@byu.net>

	* include/stdint.h (WINT_MIN): Fix sign.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGFaQV84KuGfSFAYARAmW8AJ9QGdXtWbUxllUGN9n0FgONCtOHWACcDxRT
gD5ZhCiGstr+Dx4lr8tsgi8=
=sA5w
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin.patch7
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20070406/f622f5ff/attachment.ksh>


More information about the Cygwin-patches mailing list