소스 검색

* fixed parsing of typed widestring constants with length 1

florian 22 년 전
부모
커밋
2a178f0d93
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      compiler/ptconst.pas

+ 5 - 2
compiler/ptconst.pas

@@ -498,7 +498,7 @@ implementation
            begin
               p:=comp_expr(true);
               { load strval and strlength of the constant tree }
-              if p.nodetype=stringconstn then
+              if (p.nodetype=stringconstn) or is_widestring(t.def) then
                 begin
                   { convert to the expected string type so that
                     for widestrings strval is a pcompilerwidestring }
@@ -994,7 +994,10 @@ implementation
 end.
 {
   $Log$
-  Revision 1.72  2003-10-21 18:16:13  peter
+  Revision 1.73  2003-11-08 10:23:35  florian
+    * fixed parsing of typed widestring constants with length 1
+
+  Revision 1.72  2003/10/21 18:16:13  peter
     * IncompatibleTypes() added that will include unit names when
       the typenames are the same