summaryrefslogtreecommitdiff
path: root/packages/fcl-fpcunit
diff options
context:
space:
mode:
authormichael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2>2016-09-09 12:29:06 +0000
committermichael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2>2016-09-09 12:29:06 +0000
commit7b62a0c9032c1c6287c74899cf210fd67a6e62cc (patch)
tree228fb66bf99ad7df9c4c44339fc654e84bbf0cd7 /packages/fcl-fpcunit
parented8eda135a27625145b8e70ada8dc4907c0b20ac (diff)
downloadfpc-7b62a0c9032c1c6287c74899cf210fd67a6e62cc.tar.gz
* Patch from Silvio Clecio to adapt to new VMT methods (bug ID 30435)
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@34471 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fcl-fpcunit')
-rw-r--r--packages/fcl-fpcunit/src/testutils.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/fcl-fpcunit/src/testutils.pp b/packages/fcl-fpcunit/src/testutils.pp
index 7f9440de6d..95c07c1b17 100644
--- a/packages/fcl-fpcunit/src/testutils.pp
+++ b/packages/fcl-fpcunit/src/testutils.pp
@@ -67,7 +67,7 @@ type
PMethodNameRec = ^TMethodNameRec;
TMethodNameRec = packed record
name : pshortstring;
- addr : pointer;
+ addr : codepointer;
end;
TMethodNameTable = packed record
@@ -80,15 +80,15 @@ type
var
methodTable : pMethodNameTable;
i : dword;
- vmt: TClass;
+ vmt: PVmt;
idx: integer;
pmr: PMethodNameRec;
begin
AList.Clear;
- vmt := aClass;
+ vmt := PVmt(aClass);
while assigned(vmt) do
begin
- methodTable := pMethodNameTable((Pointer(vmt) + vmtMethodTable)^);
+ methodTable := pMethodNameTable(vmt^.vMethodTable);
if assigned(MethodTable) then
begin
pmr := @methodTable^.entries[0];
@@ -102,7 +102,7 @@ begin
Inc(pmr);
end;
end;
- vmt := pClass(pointer(vmt) + vmtParent)^;
+ vmt := vmt^.vParent;
end;
end;