[fpc-devel]Incorrect warning msg using 'not' and 'DWord' (FPC 1.0.4)

Marcel van der Heide mgh0002 at attglobal.net
Sat Mar 17 17:49:30 CET 2001


Compiling the following prog with warnings enabled and range checking on 
gives (incorrectly) 2 warning msgs about mixing signed expressions and 
cardinals. 
When using 'or' instead of 'and not' it compiles without warnings.
When using Word instead of DWord, no warnings either.


Best wishes,

Marcel


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.




More information about the fpc-devel mailing list