On Mon, Jun 11, 2001 at 03:41:57PM -0500, Jarkko Hietaniemi wrote:
> > util.c: In function `Perl_cast_ulong':
> > util.c:2936: warning: decimal constant is so large that it is unsigned
> > util.c:2936: warning: decimal constant is so large that it is unsigned
> > util.c: In function `Perl_cast_i32':
> > util.c:2954: warning: decimal constant is so large that it is unsigned
> > util.c:2954: warning: decimal constant is so large that it is unsigned
> 
> Hmm, I wonder why no other gccs seem to care?  What's the version of gcc?

It's I32_MIN and IV_MIN it's complaining about. This would be a bad thing.

Could you compile and run

#include "EXTERN.h"
#include "perl.h"
int main (void) {
  puts ("I32_MIN='"STRINGIFY(I32_MIN)"'");
  return 0;
}

in your perl build directory please. I see this on ARM Linux:

./testit
I32_MIN='(-2147483647-1)'

which looks like a sensible way to get -2147483648

Nicholas Clark

Reply via email to