Преглед изворни кода

* fixed 64 bit compilation

git-svn-id: trunk@7396 -
Jonas Maebe пре 18 година
родитељ
комит
f50eb8c9f6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tests/webtbs/tw8177.pp

+ 1 - 1
tests/webtbs/tw8177.pp

@@ -762,7 +762,7 @@ begin
  c:=#0;
  // make sure the statement after this does not write to a read-only location
  GlobalStrValidate28 := c;
- PInteger(Integer(GlobalStrValidate28)-4)^ := 0; //Set Length to 0
+ PSizeInt(Pointer(GlobalStrValidate28)-sizeof(SizeInt))^ := 0; //Set Length to 0
  try
   StrToInt(GlobalStrValidate28);
   ErrorTrap(VALIDATENO, GlobalStrValidate28);