소스 검색

* fixed alignment of reference used to set the first char of a 1-byte
shortstring

git-svn-id: trunk@34300 -

Jonas Maebe 9 년 전
부모
커밋
f0bf3b364a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      compiler/ncgld.pas

+ 1 - 0
compiler/ncgld.pas

@@ -752,6 +752,7 @@ implementation
                     hlcg.g_ptrtypecast_ref(current_asmdata.CurrAsmList,cpointerdef.getreusable(left.resultdef),tpointerdef(charpointertype),href);
                     hlcg.a_load_const_ref(current_asmdata.CurrAsmList,cansichartype,1,href);
                     inc(href.offset,1);
+                    href.alignment:=1;
                     case right.location.loc of
                       LOC_REGISTER,
                       LOC_CREGISTER :