소스 검색

* fixed test for 64 bit platforms

git-svn-id: trunk@6093 -
tom_at_work 18 년 전
부모
커밋
5234486213
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  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.