K
kerravon
The following C program:
int main(void)
{
int x = -2147483648;
return (0);
}
Produces the following warning:
temp.c: In function `main':
temp.c:3: warning: decimal constant is so large that it is unsigned
on gcc on Win98 and MVS.
As far as I can tell, that is in fact the maximum negative number on
those
environments and therefore the constant fits into a signed integer and
therefore I shouldn't be getting a warning.
Any ideas? I checked the FAQ but didn't see anything.
Thanks. Paul.
int main(void)
{
int x = -2147483648;
return (0);
}
Produces the following warning:
temp.c: In function `main':
temp.c:3: warning: decimal constant is so large that it is unsigned
on gcc on Win98 and MVS.
As far as I can tell, that is in fact the maximum negative number on
those
environments and therefore the constant fits into a signed integer and
therefore I shouldn't be getting a warning.
Any ideas? I checked the FAQ but didn't see anything.
Thanks. Paul.