Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis "D.C." Dietrich <dennisdietrich@users.noreply.github.com>2017-02-11 01:28:04 +0300
committerTarek Mahmoud Sayed <tarekms@microsoft.com>2017-02-11 01:28:04 +0300
commit0f2870b1ece429a0cc247b97d830fd55585abf22 (patch)
treec631b62792c0b64eeec84775ed0bee344b7228ab /src/System.Runtime.Extensions/tests
parentf462fa1e1f9dc3b7d297c856e8585ee2c4e2a2fc (diff)
Marking code as unchecked (pt 6) (#16048)
Marking code that may intentionally lead to over or underflows with unchecked in preparation of turning on CheckForOverflowUnderflow for all projects (issue #3140)
Diffstat (limited to 'src/System.Runtime.Extensions/tests')
-rw-r--r--src/System.Runtime.Extensions/tests/System/BitConverter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Runtime.Extensions/tests/System/BitConverter.cs b/src/System.Runtime.Extensions/tests/System/BitConverter.cs
index 674623cbfe..d0ce5908aa 100644
--- a/src/System.Runtime.Extensions/tests/System/BitConverter.cs
+++ b/src/System.Runtime.Extensions/tests/System/BitConverter.cs
@@ -217,7 +217,7 @@ namespace System.Tests
[Fact]
public static void ToString_ByteArray_Long()
{
- byte[] bytes = Enumerable.Range(0, 256 * 4).Select(i => (byte)i).ToArray();
+ byte[] bytes = Enumerable.Range(0, 256 * 4).Select(i => unchecked((byte)i)).ToArray();
string expected = string.Join("-", bytes.Select(b => b.ToString("X2")));