From e00a673a043a354aa915b67ac6c6020ead6343dd Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Thu, 23 Mar 2023 15:11:44 +0000 Subject: [PATCH] i is for I will scream at these changes --- X10D/src/Core/SpanExtensions.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/X10D/src/Core/SpanExtensions.cs b/X10D/src/Core/SpanExtensions.cs index d200b17..dedf5bb 100644 --- a/X10D/src/Core/SpanExtensions.cs +++ b/X10D/src/Core/SpanExtensions.cs @@ -1,4 +1,4 @@ -using System.Diagnostics.Contracts; +using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -201,9 +201,9 @@ public static class SpanExtensions default: byte result = 0; - for (var i = 0; i < source.Length; i++) + for (var index = 0; index < source.Length; index++) { - result |= (byte)(source[i] ? 1 << i : 0); + result |= (byte)(source[index] ? 1 << index : 0); } return result; @@ -270,9 +270,9 @@ public static class SpanExtensions default: short result = 0; - for (var i = 0; i < source.Length; i++) + for (var index = 0; index < source.Length; index++) { - result |= (short)(source[i] ? 1 << i : 0); + result |= (short)(source[index] ? 1 << index : 0); } return result; @@ -428,9 +428,9 @@ public static class SpanExtensions default: long result = 0; - for (var i = 0; i < source.Length; i++) + for (var index = 0; index < source.Length; index++) { - result |= source[i] ? 1U << i : 0; + result |= source[index] ? 1U << index : 0; } return result;