瀏覽代碼

* use reverse_longword() instead of reverse_byte(); fixes the management operators of records inside classes on big endian systems

git-svn-id: trunk@39265 -
svenbarth 7 年之前
父節點
當前提交
3f96c0baed
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ncgrtti.pas

+ 1 - 1
compiler/ncgrtti.pas

@@ -421,7 +421,7 @@ implementation
         { keep this in sync with the type declaration of TRecordInfoInitFlag(s)
         { keep this in sync with the type declaration of TRecordInfoInitFlag(s)
           in both rttidecl.inc and typinfo.pp }
           in both rttidecl.inc and typinfo.pp }
         if target_info.endian=endian_big then
         if target_info.endian=endian_big then
-          value:=reverse_byte(value);
+          value:=reverse_longword(value);
         tcb.emit_ord_const(value,u32inttype);
         tcb.emit_ord_const(value,u32inttype);
       end;
       end;