mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-24 19:49:07 +02:00
* Merging revisions 342 from trunk:
------------------------------------------------------------------------ r342 | mattias | 2019-03-04 14:52:35 +0100 (Mon, 04 Mar 2019) | 1 line rtl: less hints ------------------------------------------------------------------------
This commit is contained in:
parent
d2f37d31a3
commit
74a7874b96
@ -1819,7 +1819,7 @@ end;
|
|||||||
Function TBucketList.BucketFor(AItem: JSValue): Integer;
|
Function TBucketList.BucketFor(AItem: JSValue): Integer;
|
||||||
begin
|
begin
|
||||||
// JSValues on average have a granularity of 4
|
// JSValues on average have a granularity of 4
|
||||||
Result:=(PtrInt(AItem) shr 2) and FBucketMask;
|
Result:=(longword(AItem) shr 2) and FBucketMask;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TBucketList.Create(ABuckets: TBucketListSizes);
|
constructor TBucketList.Create(ABuckets: TBucketListSizes);
|
||||||
|
Loading…
Reference in New Issue
Block a user