<< protected with "checked", where needed.

This commit is contained in:
mlemanczyk committed 2023-10-07 14:04:33 +02:00
1 parent 262590ed6e
commit 39d63d1d65
7 files changed
+27 -27

No files matched your search

@@ -54,7 +54,7 @@ namespace Recyclable.Collections.Benchmarks.POC
int result = 1;
while (result < value)
{
result <<= 1;
result = checked(result << 1);
}
return result;