From 8ba6c255b91463b7c3bf60fbbd8e13eaa66d2464 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 19 Oct 2005 08:55:34 +0000 Subject: [PATCH] * fixed compile git-svn-id: branches/fixes_2_0@1525 - --- compiler/nmem.pas | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/compiler/nmem.pas b/compiler/nmem.pas index 99e3834e73..aeb50a3aba 100644 --- a/compiler/nmem.pas +++ b/compiler/nmem.pas @@ -641,17 +641,6 @@ implementation resulttypepass(left); resulttypepass(right); - { implicitly convert stringconstant to stringdef, - see tbs/tb0476.pp for a test } - if (left.nodetype=stringconstn) and - (tstringconstnode(left).st_type=st_conststring) then - begin - if tstringconstnode(left).len>255 then - inserttypeconv(left,cansistringtype) - else - inserttypeconv(left,cshortstringtype); - end; - { In p[1] p is always valid, it is not possible to declared a shortstring or normal array that has undefined number of elements. Dynamic array and