Skip to content

Commit 0a166f1

Browse files
committed
Removed redundant conversion
1 parent fed9c09 commit 0a166f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotNext/Numerics/Number.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static bool TryGetFromTable(ReadOnlySpan<T> cachedPrimes, T value, out T result)
205205
for (var high = cachedPrimes.Length; low < high;)
206206
{
207207
var mid = (low + high) / 2;
208-
result = T.CreateChecked(cachedPrimes[mid]);
208+
result = cachedPrimes[mid];
209209
var cmp = result.CompareTo(value);
210210
if (cmp > 0)
211211
high = mid;

0 commit comments

Comments
 (0)