Procházet zdrojové kódy

+ handle also widestring constants in constant string expressions

git-svn-id: trunk@10927 -
florian před 17 roky
rodič
revize
ae836f878f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      compiler/ptconst.pas

+ 1 - 1
compiler/ptconst.pas

@@ -640,7 +640,7 @@ implementation
         begin
           n:=comp_expr(true);
           { load strval and strlength of the constant tree }
-          if (n.nodetype=stringconstn) or is_widestring(def) then
+          if (n.nodetype=stringconstn) or is_widestring(def) or is_constwidecharnode(n) then
             begin
               { convert to the expected string type so that
                 for widestrings strval is a pcompilerwidestring }