Removing unnecessary casts to nuint.
authorahsonkhan <ahson_ahmedk@yahoo.com>
Tue, 14 Feb 2017 07:53:04 +0000 (23:53 -0800)
committerahsonkhan <ahson_ahmedk@yahoo.com>
Wed, 15 Feb 2017 01:17:56 +0000 (17:17 -0800)
src/mscorlib/src/System/Span.cs

index 5d6b8ad..95039fb 100644 (file)
@@ -857,8 +857,8 @@ namespace System
 
             // TODO: Perhaps do switch casing to improve small size perf
 
-            var i = (nuint)0;
-            var n = (nuint)0;
+            nuint i = 0;
+            nuint n = 0;
             while ((n = i + 8) <= (pointerSizeLength))
             {
                 Unsafe.Add<IntPtr>(ref ip, (int)i + 0) = default(IntPtr);