<div dir="ltr"><div>Hello,</div><div><br></div><div>Is there any compiler switch to increase the range limit check for operations like this?:</div><div><br></div><div><span style="font-size:12.8000001907349px">{$R-}</span><br></div><div><br></div><div><div style="font-size:12.8000001907349px">var</div><div style="font-size:12.8000001907349px"> r: SmallInt = 256;</div><div style="font-size:12.8000001907349px"> i : SmallInt;</div><div style="font-size:12.8000001907349px">begin</div><div style="font-size:12.8000001907349px"> i := 10;</div><div style="font-size:12.8000001907349px"> if i in [0..r] then</div><div style="font-size:12.8000001907349px"> WriteLn('OK')</div><div style="font-size:12.8000001907349px"> else</div><div style="font-size:12.8000001907349px"> WriteLn('Fail');</div><div style="font-size:12.8000001907349px">end;</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thank you!</div><div><br></div>-- <br><div class="gmail_signature">Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div></div>