[fpc-devel]Incorrect warning msg using 'not' and 'DWord' (FPC 1.0.4)
Jonas
jonas at zeus.rug.ac.be
Tue Mar 20 19:15:53 CET 2001
On Saturday, March 17, 2001, at 05:49 PM, Marcel van der Heide wrote:
>> platfrom: linux
> version: fpc 1.0.4
>
> program test;
>
> const
> cTest1 = $03;
> cTest2: DWord = $03;
>
> var
> vTest: DWord;
>
> begin
> vTest:= vTest and not cTest1;
> vTest:= vTest and not cTest2;
> end.
The second now doesn't give a warning anymore, but the first still does. The reason is that if you don't explicitely typecast a constant in FPC, it's always a longint (in 1.0.x at least).
Jonas
More information about the fpc-devel
mailing list