mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 21:58:36 +02:00
* fixed wrong range check warnings/errors for open strings
git-svn-id: trunk@7944 -
This commit is contained in:
parent
c5c6cb7dd0
commit
ce478cd249
@ -739,7 +739,9 @@ implementation
|
|||||||
int64(Tarraydef(left.resultdef).highrange)
|
int64(Tarraydef(left.resultdef).highrange)
|
||||||
));
|
));
|
||||||
stringdef:
|
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.}
|
{Convert shortstring indexes to 0..length.}
|
||||||
inserttypeconv(right,Torddef.create(u8bit,0,int64(Tstringdef(left.resultdef).len)))
|
inserttypeconv(right,Torddef.create(u8bit,0,int64(Tstringdef(left.resultdef).len)))
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user