Skip to content

Commit 2e5dce5

Browse files
committed
Fixed a typo and bug
1 parent 0f469c6 commit 2e5dce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.HighPerformance/Helpers/Internals/SpanHelper.Count.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ private static nint CountSimd<T>(ref T r0, nint length, T value)
297297
private static unsafe nint GetUpperBound<T>()
298298
where T : unmanaged
299299
{
300-
if (typeof(T) == typeof(byte))
300+
if (typeof(T) == typeof(sbyte))
301301
{
302302
return sbyte.MaxValue;
303303
}

0 commit comments

Comments
 (0)