소스 검색

* allow conststring to array of widechar

git-svn-id: trunk@1471 -
peter 20 년 전
부모
커밋
adfd36d189
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      compiler/defcmp.pas

+ 2 - 1
compiler/defcmp.pas

@@ -660,7 +660,8 @@ implementation
                         else
                           { to array of char, from "Untyped" stringconstn (array of char) }
                           if (fromtreetype=stringconstn) and
-                             is_chararray(def_to) then
+                             (is_chararray(def_to) or
+                              is_widechararray(def_to)) then
                             begin
                               eq:=te_convert_l1;
                               doconv:=tc_string_2_chararray;