mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 09:29:07 +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
|
(tstringconstnode(right).len > tstringdef(left.resultdef).len) then
|
||||||
cgmessage(type_w_string_too_long);
|
cgmessage(type_w_string_too_long);
|
||||||
inserttypeconv(right,left.resultdef);
|
inserttypeconv(right,left.resultdef);
|
||||||
if (tstringconstnode(right).len=0) then
|
if (right.nodetype=stringconstn) and
|
||||||
|
(tstringconstnode(right).len=0) then
|
||||||
useshelper:=false;
|
useshelper:=false;
|
||||||
end;
|
end;
|
||||||
{ rest is done in pass 1 (JM) }
|
{ rest is done in pass 1 (JM) }
|
||||||
|
Loading…
Reference in New Issue
Block a user