mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 19:09:16 +02:00
* vmt offset of objects is no properly aligned when necessary
This commit is contained in:
parent
fa2f619598
commit
7f89448cec
@ -4996,6 +4996,11 @@ implementation
|
|||||||
begin
|
begin
|
||||||
tobjectsymtable(symtable).datasize:=align(tobjectsymtable(symtable).datasize,
|
tobjectsymtable(symtable).datasize:=align(tobjectsymtable(symtable).datasize,
|
||||||
tobjectsymtable(symtable).fieldalignment);
|
tobjectsymtable(symtable).fieldalignment);
|
||||||
|
|
||||||
|
{$ifdef cpurequiresproperalignment}
|
||||||
|
tobjectsymtable(symtable).datasize:=align(tobjectsymtable(symtable).datasize,sizeof(aint));
|
||||||
|
{$endif cpurequiresproperalignment}
|
||||||
|
|
||||||
vmt_offset:=tobjectsymtable(symtable).datasize;
|
vmt_offset:=tobjectsymtable(symtable).datasize;
|
||||||
inc(tobjectsymtable(symtable).datasize,sizeof(aint));
|
inc(tobjectsymtable(symtable).datasize,sizeof(aint));
|
||||||
include(objectoptions,oo_has_vmt);
|
include(objectoptions,oo_has_vmt);
|
||||||
@ -6214,7 +6219,10 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.266 2004-11-04 17:58:48 peter
|
Revision 1.267 2004-11-05 21:07:13 florian
|
||||||
|
* vmt offset of objects is no properly aligned when necessary
|
||||||
|
|
||||||
|
Revision 1.266 2004/11/04 17:58:48 peter
|
||||||
elecount also on 32bit needs the qword part to prevent overflow
|
elecount also on 32bit needs the qword part to prevent overflow
|
||||||
|
|
||||||
Revision 1.265 2004/11/04 17:09:54 peter
|
Revision 1.265 2004/11/04 17:09:54 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user