소스 검색

* use new chartype_for_stringlike function to retrieve the char type for a stringlike def instead of casting to a stringdef

Sven/Sarah Barth 2 년 전
부모
커밋
e8fcc5343b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/pgenutil.pas

+ 1 - 1
compiler/pgenutil.pas

@@ -1158,7 +1158,7 @@ uses
                 begin
                   target_def:=tarraydef(target_def).elementdef;
                   target_key:=generic_param_hash(target_def);
-                  caller_def:=tstringdef(caller_def).get_default_char_type;
+                  caller_def:=chartype_for_stringlike(caller_def);
                 end
               { non-uniform array constructors (i.e. array of const) are not compatible 
                 with normal arrays like "array of T" so we reject them }