Selaa lähdekoodia

rtti: make aligntoqword to always align to the same size as typinfo/AlignTypeData. this fixes m68k crashes in RTTI after r35218

git-svn-id: trunk@35228 -
Károly Balogh 8 vuotta sitten
vanhempi
commit
233185a4e5
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      rtl/inc/system.inc

+ 3 - 0
rtl/inc/system.inc

@@ -445,11 +445,14 @@ function aligntoptr(p : pointer) : pointer;inline;
 
 
 function aligntoqword(p : pointer) : pointer;inline;
+{$push}
+{$packrecords c}
   type
     TAlignCheck = record
       b : byte;
       q : qword;
     end;
+{$pop}
   begin
 {$ifdef FPC_REQUIRES_PROPER_ALIGNMENT}
     result:=align(p,PtrInt(@TAlignCheck(nil^).q))