mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-14 10:19:34 +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;
|
||||
begin
|
||||
// JSValues on average have a granularity of 4
|
||||
Result:=(PtrInt(AItem) shr 2) and FBucketMask;
|
||||
Result:=(longword(AItem) shr 2) and FBucketMask;
|
||||
end;
|
||||
|
||||
constructor TBucketList.Create(ABuckets: TBucketListSizes);
|
||||
|
Loading…
Reference in New Issue
Block a user