mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 17:13:02 +02:00
* fix invalid typecast
git-svn-id: trunk@8435 -
This commit is contained in:
parent
1d387c935d
commit
0fda1126b5
@ -560,7 +560,8 @@ implementation
|
||||
(tstringconstnode(right).len > tstringdef(left.resultdef).len) then
|
||||
cgmessage(type_w_string_too_long);
|
||||
inserttypeconv(right,left.resultdef);
|
||||
if (tstringconstnode(right).len=0) then
|
||||
if (right.nodetype=stringconstn) and
|
||||
(tstringconstnode(right).len=0) then
|
||||
useshelper:=false;
|
||||
end;
|
||||
{ rest is done in pass 1 (JM) }
|
||||
|
Loading…
Reference in New Issue
Block a user