0

W510 False positive

Anonymous 9 years ago 0

Sample code:


var

lCounter : Integer;

begin

lCounter := 0;

repeat

inc(lCounter);

if lCounter div 100 = lCounter / 100 then //<- false positive "[FixInsight Warning] frmLogowanie.pas(305): W510 Values on both sides of the operator are equal"

begin
ShowProgress;

end;
until lCounter > 1000;
end;