* fixed wrong range check warnings/errors for open strings

git-svn-id: trunk@7944 -
This commit is contained in:
Jonas Maebe 2007-07-04 08:09:45 +00:00
parent c5c6cb7dd0
commit ce478cd249

View File

@ -739,7 +739,9 @@ implementation
int64(Tarraydef(left.resultdef).highrange)
));
stringdef:
if Tstringdef(left.resultdef).stringtype=st_shortstring then
if is_open_string(left.resultdef) then
inserttypeconv(right,u8inttype)
else if is_shortstring(left.resultdef) then
{Convert shortstring indexes to 0..length.}
inserttypeconv(right,Torddef.create(u8bit,0,int64(Tstringdef(left.resultdef).len)))
else