2 Jul 23:00
Fix UINT{8,16}_C
From: Eric Blake <ebb9 <at> byu.net>
Subject: Fix UINT{8,16}_C
Newsgroups: gmane.os.cygwin.patches
Date: 2006-07-02 21:02:55 GMT
Subject: Fix UINT{8,16}_C
Newsgroups: gmane.os.cygwin.patches
Date: 2006-07-02 21:02:55 GMT
According to POSIX, UINT{8,16}_C should result in an integer constant with
"the same type as would an expression that is an object of the
corresponding type converted according to the integer promotions." And
according to C, unsigned char promotes to signed int, when int is wider
than char. Gnulib now tests for bugs in stdint.h, and these are the
remaining two issues that makes cygwin's version non-compliant:
2006-07-02 Eric Blake <ebb9 <at> byu.net>
* include/stdint.h (UINT8_C, UINT16_C): Unsigned types smaller
than int promote to signed int.
--
Life is short - so eat dessert first!
Eric Blake ebb9 <at> byu.net
Index: cygwin/include/stdint.h =================================================================== RCS file: /cvs/src/src/winsup/cygwin/include/stdint.h,v retrieving revision 1.6 diff -u -p -r1.6 stdint.h --- cygwin/include/stdint.h 23 May 2005 13:13:00 -0000 1.6 +++ cygwin/include/stdint.h 2 Jul 2006 21:01:39 -0000 @@ -1,6 +1,6 @@ /* stdint.h - integer types - Copyright 2003 Red Hat, Inc.(Continue reading)
RSS Feed