[fpc-pascal] How to increase the range ckeck limit?

silvioprog silvioprog at gmail.com
Sat Jul 4 19:51:11 CEST 2015


Hello,

Is there any compiler switch to increase the range limit check for
operations like this?:

{$R-}

var
  r: SmallInt = 256;
  i : SmallInt;
begin
  i := 10;
  if i in [0..r] then
    WriteLn('OK')
  else
    WriteLn('Fail');
end;

Thank you!

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150704/93eb599a/attachment.html>


More information about the fpc-pascal mailing list