Browse Source

* Merging revisions 342 from trunk:
------------------------------------------------------------------------
r342 | mattias | 2019-03-04 14:52:35 +0100 (Mon, 04 Mar 2019) | 1 line

rtl: less hints
------------------------------------------------------------------------

michael 6 years ago
parent
commit
74a7874b96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl/contnrs.pas

+ 1 - 1
packages/rtl/contnrs.pas

@@ -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);