Browse Source
Update src/ImageSharp/Common/Helpers/Numerics.cs
Co-authored-by: Anton Firszov <antonfir@gmail.com>
js/color-alpha-handling
James Jackson-South
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/ImageSharp/Common/Helpers/Numerics.cs
|
|
|
@ -393,7 +393,7 @@ namespace SixLabors.ImageSharp |
|
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
|
private static void ClampImpl<T>(Span<T> span, T min, T max) |
|
|
|
where T : unmanaged |
|
|
|
where T : unmanaged |
|
|
|
{ |
|
|
|
ref T sRef = ref MemoryMarshal.GetReference(span); |
|
|
|
ref Vector<T> vsBase = ref Unsafe.As<T, Vector<T>>(ref MemoryMarshal.GetReference(span)); |
|
|
|
|