瀏覽代碼

* 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.