On Sun, Sep 11, 2005 at 01:06:57PM +0200, Bernhard Schmalhofer wrote: > Well, the problem is that Parrot indeed returns the incorrect values > that are > mentioned in the webpage.
I happen to get the correct answers out to 20! but only because I'm on 64bit hardware. The real issue is that the C standards specifies integer overflow as undefined behavior. Supposedly, with the proper flags, you can get gcc to give you a SIGFPE on signed overflow. AFAIK - there is no portable way to trap the overflow. I think the best we can hope for is automatic promotion of literals by the compiler/assembler. -J --
pgpX12r1mR64J.pgp
Description: PGP signature