Re: Interesting bug: A := -A; // When A is -2147483648 it remains -2147483648
- From: "Skybuck Flying" <spam@xxxxxxxxxxx>
- Date: Thu, 5 Jul 2007 22:51:11 +0200
"Rudy Velthuis" <newsgroups@xxxxxxxxxxxx> wrote in message
news:xn0f8cmdygugikt00mrvelthuis@xxxxxxxxxxxx
Skybuck Flying wrote:
Try with range checking on.
I don't think you'll get a range check error ;)
But an overflow error.
Not in Delphi 2007.
Overflow checking should also always be on.
Yes for debugging.
Bye,
Skybuck.
.
- Follow-Ups:
- Re: Interesting bug: A := -A; // When A is -2147483648 it remains -2147483648
- From: Rudy Velthuis
- Re: Interesting bug: A := -A; // When A is -2147483648 it remains -2147483648
- References:
- Interesting bug: A := -A; // When A is -2147483648 it remains -2147483648
- From: Skybuck Flying
- Re: Interesting bug: A := -A; // When A is -2147483648 it remains -2147483648
- From: Nicholas Sherlock
- Re: Interesting bug: A := -A; // When A is -2147483648 it remains -2147483648
- From: Skybuck Flying
- Re: Interesting bug: A := -A; // When A is -2147483648 it remains -2147483648
- From: Rudy Velthuis
- Interesting bug: A := -A; // When A is -2147483648 it remains -2147483648
- Prev by Date: Re: <> Bit index operator.
- Next by Date: Re: Pop Quiz: Raising an exception inside a function in relation to the return values.
- Previous by thread: Re: Interesting bug: A := -A; // When A is -2147483648 it remains -2147483648
- Next by thread: Re: Interesting bug: A := -A; // When A is -2147483648 it remains -2147483648
- Index(es):