Explorar o código

* use sizesinttype instead of ptrsinttype to refer to vInstanceSize and
vInstanceSize2 in the VMT

git-svn-id: trunk@34623 -

nickysn %!s(int64=8) %!d(string=hai) anos
pai
achega
f62be8f6e6
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 2 2
      compiler/ncgvmt.pas
  2. 2 2
      compiler/nobj.pas

+ 2 - 2
compiler/ncgvmt.pas

@@ -1134,8 +1134,8 @@ implementation
 
 
          { determine the size with symtable.datasize, because }
          { determine the size with symtable.datasize, because }
          { size gives back 4 for classes                    }
          { size gives back 4 for classes                    }
-         tcb.emit_ord_const(tObjectSymtable(_class.symtable).datasize,ptrsinttype);
-         tcb.emit_ord_const(-int64(tObjectSymtable(_class.symtable).datasize),ptrsinttype);
+         tcb.emit_ord_const(tObjectSymtable(_class.symtable).datasize,sizesinttype);
+         tcb.emit_ord_const(-int64(tObjectSymtable(_class.symtable).datasize),sizesinttype);
 {$ifdef WITHDMT}
 {$ifdef WITHDMT}
          if _class.classtype=ct_object then
          if _class.classtype=ct_object then
            begin
            begin

+ 2 - 2
compiler/nobj.pas

@@ -859,8 +859,8 @@ implementation
           odt_object:
           odt_object:
             begin
             begin
               { size, -size, parent vmt [, dmt ] (same names as for class) }
               { size, -size, parent vmt [, dmt ] (same names as for class) }
-              vmtdef.add_field_by_def('vInstanceSize',ptrsinttype);
-              vmtdef.add_field_by_def('vInstanceSize2',ptrsinttype);
+              vmtdef.add_field_by_def('vInstanceSize',sizesinttype);
+              vmtdef.add_field_by_def('vInstanceSize2',sizesinttype);
               vmtdef.add_field_by_def('vParent',voidpointertype);
               vmtdef.add_field_by_def('vParent',voidpointertype);
 {$ifdef WITHDMT}
 {$ifdef WITHDMT}
               vmtdef.add_field_by_def('',voidpointertype);
               vmtdef.add_field_by_def('',voidpointertype);