mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 23:01:55 +02:00
* Delphi compatible hash again compatible
This commit is contained in:
parent
3db14de527
commit
d8e4544fbe
@ -989,7 +989,7 @@ label Case12, Case11, Case10, Case9, Case8, Case7, Case6, Case5, Case4, Case3, C
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
//* Set up the internal state */
|
//* Set up the internal state */
|
||||||
a := $DEADBEEF + UInt32(ALength shl 2) + APrimaryHashAndInitVal; // delphi version bug? original version don't have "shl 2"
|
a := $DEADBEEF + UInt32(ALength) + APrimaryHashAndInitVal;
|
||||||
b := a;
|
b := a;
|
||||||
c := b;
|
c := b;
|
||||||
c += ASecondaryHashAndInitVal;
|
c += ASecondaryHashAndInitVal;
|
||||||
@ -1265,7 +1265,7 @@ label Case12, Case11, Case10, Case9, Case8, Case7, Case6, Case5, Case4, Case3, C
|
|||||||
{$ENDIF NOGOTO}
|
{$ENDIF NOGOTO}
|
||||||
|
|
||||||
begin
|
begin
|
||||||
a := $DEADBEEF + UInt32(ALength shl 2) + AInitVal; // delphi version bug? original version don't have "shl 2"
|
a := $DEADBEEF + UInt32(ALength) + AInitVal;
|
||||||
b := a;
|
b := a;
|
||||||
c := b;
|
c := b;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user