Explorar o código

* fixed test for 64 bit platforms

git-svn-id: trunk@6093 -
tom_at_work %!s(int64=18) %!d(string=hai) anos
pai
achega
5234486213
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  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.