1
0
Эх сурвалжийг харах

Eliminate redundant code in Range.

Bart De Smet 6 жил өмнө
parent
commit
1144c88c20

+ 1 - 1
Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Range.cs

@@ -17,7 +17,7 @@ namespace System.Linq
                 throw Error.ArgumentOutOfRange(nameof(count));
 
             var end = (long)start + count - 1L;
-            if (count < 0 || end > int.MaxValue)
+            if (end > int.MaxValue)
                 throw Error.ArgumentOutOfRange(nameof(count));
 
             if (count == 0)