<< protected with "checked", where needed.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user