mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 14:49:16 +02:00
* vmtmethodoffset made cross target compatible
This commit is contained in:
parent
aca546d6d2
commit
7982d8c842
@ -3198,9 +3198,9 @@ Const local_symtable_index : longint = $8001;
|
|||||||
begin
|
begin
|
||||||
{ for offset of methods for classes, see rtl/inc/objpash.inc }
|
{ for offset of methods for classes, see rtl/inc/objpash.inc }
|
||||||
if is_class then
|
if is_class then
|
||||||
vmtmethodoffset:=index*4+48
|
vmtmethodoffset:=(index+12)*target_os.size_of_pointer
|
||||||
else
|
else
|
||||||
vmtmethodoffset:=index*4+12;
|
vmtmethodoffset:=(index+3)*target_os.size_of_pointer;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -3629,7 +3629,10 @@ Const local_symtable_index : longint = $8001;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.148 1999-08-10 12:32:13 pierre
|
Revision 1.149 1999-08-10 13:22:08 pierre
|
||||||
|
* vmtmethodoffset made cross target compatible
|
||||||
|
|
||||||
|
Revision 1.148 1999/08/10 12:32:13 pierre
|
||||||
* avoid overflow in tarraydef.size
|
* avoid overflow in tarraydef.size
|
||||||
|
|
||||||
Revision 1.147 1999/08/09 22:19:55 peter
|
Revision 1.147 1999/08/09 22:19:55 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user