Explorar o código

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

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

michael %!s(int64=6) %!d(string=hai) anos
pai
achega
74a7874b96
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);