mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-05 20:27:13 +01:00
* adapted to syscodepages.inc for the fixed HashName
This commit is contained in:
parent
1d32a575e7
commit
4fecfe3df3
@ -64,10 +64,11 @@ end;
|
|||||||
|
|
||||||
Function HashName(Name: PAnsiChar): LongWord;
|
Function HashName(Name: PAnsiChar): LongWord;
|
||||||
Var
|
Var
|
||||||
thehash,g,I : LongWord;
|
thehash,g : LongWord;
|
||||||
|
I : SizeInt;
|
||||||
begin
|
begin
|
||||||
thehash:=0;
|
thehash:=0;
|
||||||
For I:=1 to Length(Name) do { 0 terminated }
|
For I:=0 to StrLen(Name)-1 do { 0 terminated }
|
||||||
begin
|
begin
|
||||||
thehash:=thehash shl 4;
|
thehash:=thehash shl 4;
|
||||||
inc(theHash,Ord(UpCase(Name[i])));
|
inc(theHash,Ord(UpCase(Name[i])));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user