Re: [fpc-pascal] Re: Range check error while evaluating constants

2012-10-30 Thread geneb
On Tue, 30 Oct 2012, ik wrote: On Tue, Oct 30, 2012 at 4:26 PM, ik wrote: Hello, I have the following function: function OneToTwoComplement(AValue: QWord): QWord; begin Result := (AValue xor $) + 1; end; What am I missing here that makes the compiler complain about "Range

[fpc-pascal] Re: Range check error while evaluating constants

2012-10-30 Thread ik
On Tue, Oct 30, 2012 at 4:26 PM, ik wrote: > Hello, > > I have the following function: > > function OneToTwoComplement(AValue: QWord): QWord; > begin > Result := (AValue xor $) + 1; > end; > > What am I missing here that makes the compiler complain about "Range > check error whil