Browse Source

* 64 bit fixes

git-svn-id: trunk@4988 -
tom_at_work 19 years ago
parent
commit
ec5e7aaff1
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tests/webtbs/tw7100.pp

+ 4 - 4
tests/webtbs/tw7100.pp

@@ -51,11 +51,11 @@ end;
 
 
 procedure DumpString(const s: string);
 procedure DumpString(const s: string);
 var
 var
-  i: integer;
-  pi: pinteger;
+  i: sizeint;
+  pi: psizeint;
   pb: pbyte;
   pb: pbyte;
 begin
 begin
-  pi := pinteger(s);
+  pi := psizeint(s);
   pb := pbyte(pi);
   pb := pbyte(pi);
 
 
   // Printing reference counter and string length
   // Printing reference counter and string length
@@ -65,7 +65,7 @@ begin
     { refcount has to be 1, length 2 -> happens to be the same as i }
     { refcount has to be 1, length 2 -> happens to be the same as i }
     if (pi^ <> i) then
     if (pi^ <> i) then
       halt(1);
       halt(1);
-    write(IntToHex(pi^, 8),' ');
+    write(IntToHex(pi^, sizeof(sizeint)*2),' ');
     inc(pi);
     inc(pi);
   end;
   end;