[PATCH] stdint.h define of INT32_MIN

Christopher Faylor cgf@redhat.com
Fri Aug 8 19:31:00 GMT 2003


On Fri, Aug 08, 2003 at 01:37:51PM +0200, Gerrit P. Haase wrote:
>Hallo ,

"Hello"

>xyz.c:2: warning: this decimal constant is unsigned only in ISO C90
>
>Both of the below patches are ok. for me to build perl and also there
>are no warnings issued, the first is the way it is defined on Linux
>too, the second seems to be alright according to the SUS specs:
>
>$ diff -udp stdint.h~ stdint.h
>--- stdint.h~   2003-08-08 13:14:19.248036800 +0200
>+++ stdint.h    2003-08-08 13:14:36.452776000 +0200
>@@ -70,7 +70,7 @@ typedef unsigned long long uintmax_t;
> 
> #define INT8_MIN (-128)
> #define INT16_MIN (-32768)
>-#define INT32_MIN (-2147483648)
>+#define INT32_MIN (-2147483647-1)
> #define INT64_MIN (-9223372036854775808)
> 
> #define INT8_MAX (127)
>
># END

I've applied the above patch.

Thanks.

cgf



More information about the Cygwin-patches mailing list