On Sat, 4 Jul 2015, silvioprog wrote:

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;

What do you mean,  your question is not clear ?

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to