diff --git a/compiler/ncgrtti.pas b/compiler/ncgrtti.pas index 2800030abd..9d04bb6d1d 100644 --- a/compiler/ncgrtti.pas +++ b/compiler/ncgrtti.pas @@ -421,7 +421,7 @@ implementation { keep this in sync with the type declaration of TRecordInfoInitFlag(s) in both rttidecl.inc and typinfo.pp } if target_info.endian=endian_big then - value:=reverse_byte(value); + value:=reverse_longword(value); tcb.emit_ord_const(value,u32inttype); end;