Browse Source

* fixed test for 64 bit platforms

git-svn-id: trunk@6093 -
tom_at_work 18 years ago
parent
commit
5234486213
1 changed files with 10 additions and 1 deletions
  1. 10 1
      tests/webtbs/tw8141.pp

+ 10 - 1
tests/webtbs/tw8141.pp

@@ -2,9 +2,18 @@
 uses
   Classes, SysUtils;
 
+type
+  ARec = packed record
+  {$ifdef cpu64}
+    hi, lo : DWord;
+  {$else}
+    hi, lo : Word;
+  {$endif}
+  end;
+
 var
   List : TList;
 begin
-  with LongRec(Pointer(List.Last)) do
+  with ARec(Pointer(List.Last)) do
     lo := 1;
 end.