瀏覽代碼

* Added a typecast to avoid range error in 64-bit debug builds

git-svn-id: trunk@20596 -
sergei 13 年之前
父節點
當前提交
3d1b4b1b63
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-xml/src/xmlutils.pp

+ 1 - 1
packages/fcl-xml/src/xmlutils.pp

@@ -693,7 +693,7 @@ var
   idx: Integer;
   HashValue: LongWord;
 begin
-  HashValue := Hash(PtrUInt(uri), localName, localLength);
+  HashValue := Hash(LongWord(PtrUInt(uri)), localName, localLength);
 
   mask := (1 shl FSizeLog) - 1;
   step := (HashValue and (not mask)) shr (FSizeLog-1) and (mask shr 2) or 1;