Browse Source

rtl: less hints

mattias 6 years ago
parent
commit
a8430a243b
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;
 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);