mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 09:40:20 +02:00
* Added a typecast to avoid range error in 64-bit debug builds
git-svn-id: trunk@20596 -
This commit is contained in:
parent
86bf5f36ba
commit
3d1b4b1b63
@ -693,7 +693,7 @@ var
|
|||||||
idx: Integer;
|
idx: Integer;
|
||||||
HashValue: LongWord;
|
HashValue: LongWord;
|
||||||
begin
|
begin
|
||||||
HashValue := Hash(PtrUInt(uri), localName, localLength);
|
HashValue := Hash(LongWord(PtrUInt(uri)), localName, localLength);
|
||||||
|
|
||||||
mask := (1 shl FSizeLog) - 1;
|
mask := (1 shl FSizeLog) - 1;
|
||||||
step := (HashValue and (not mask)) shr (FSizeLog-1) and (mask shr 2) or 1;
|
step := (HashValue and (not mask)) shr (FSizeLog-1) and (mask shr 2) or 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user