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

Michael Van Canneyt michael at freepascal.org
Sun Jul 5 11:26:45 CEST 2015



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.


More information about the fpc-pascal mailing list