Skip to content

Commit ed5dd34

Browse files
author
Alex Peck
committed
rem unsafe
1 parent 6cfbcb6 commit ed5dd34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BitFaster.Caching/Lfu/CmSketchCore.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private void EnsureCapacity(long maximumSize)
168168
size = 0;
169169
}
170170

171-
private unsafe int EstimateFrequencyStd(T value)
171+
private int EstimateFrequencyStd(T value)
172172
{
173173
int blockHash = Spread(comparer.GetHashCode(value));
174174
int counterHash = Rehash(blockHash);
@@ -198,7 +198,7 @@ private unsafe int EstimateFrequencyStd(T value)
198198
return Math.Min(Math.Min(count0, count1), Math.Min(count2, count3));
199199
}
200200

201-
private unsafe void IncrementStd(T value)
201+
private void IncrementStd(T value)
202202
{
203203
int blockHash = Spread(comparer.GetHashCode(value));
204204
int counterHash = Rehash(blockHash);

0 commit comments

Comments
 (0)