Overflow Bug: Regression from Version 4.2.1

Tom Browder tom.browder@gmail.com
Fri Jan 9 12:03:00 GMT 2009


On Fri, Jan 9, 2009 at 5:07 AM, Arjen Markus <arjen.markus@wldelft.nl> wrote:
>> On Thu, Jan 8, 2009 at 8:45 PM, Tim Prince <TimothyPrince@sbcglobal.net>
>> wrote:
...
> The largest positive integer that will fit into a 4-byte storage using
> the usual two's complement scheme is 2**31-1.
>
> The largest negative integer that fits is -2**31.
>
> So 2**31 should give an overflow.

Thanks, Arjen--I'm obviously rusty binary-wise.

-Tom



More information about the Fortran mailing list