4 Apr 2007 03:29
Re: stdint.h bug
Eric Blake <ebb9 <at> byu.net>
2007-04-04 01:29:35 GMT
2007-04-04 01:29:35 GMT
According to Christopher Faylor on 4/3/2007 1:13 PM: > On Tue, Apr 03, 2007 at 06:15:14PM +0000, Eric Blake wrote: >> Cygwin defines wint_t as unsigned int (valid, per POSIX), but then defines >> >> #ifndef WINT_MIN >> #define WINT_MIN (-2147483647 - 1) >> #define WINT_MAX (2147483647) >> #endif >> >> which is invalid given the underlying type of wint_t. Can we get this fixed >> (either make wint_t a signed type, or change WINT_MIN and WINT_MAX)? > > Patch? Well, I was hoping for some feedback as to whether changing wint_t to be signed was preferable over changing WINT_MIN. But further research shows Linux also uses an unsigned type for wint_t, so: 2007-04-03 Eric Blake <ebb9 <at> byu.net> * include/stdint.h (WINT_MIN, WINT_MAX): Fix definition. -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 <at> byu.net
Index: include/stdint.h(Continue reading)
RSS Feed