* fix invalid typecast

git-svn-id: trunk@8435 -
This commit is contained in:
peter 2007-09-11 22:28:39 +00:00
parent 1d387c935d
commit 0fda1126b5

View File

@ -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) }