[backend/core] Fix build with LangVersion=preview

This commit is contained in:
Laura Hausmann 2025-03-11 00:47:31 +01:00
parent 1bd69467af
commit ae5cc2477f
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -16,7 +16,7 @@ public static class BlurhashHelper
/// <param name="componentsX">The number of components used on the X-Axis for the DCT</param>
/// <param name="componentsY">The number of components used on the Y-Axis for the DCT</param>
/// <returns>The resulting Blurhash string</returns>
public static string Encode(Span2D<Rgb24> pixels, int componentsX, int componentsY)
public static string Encode(ReadOnlySpan2D<Rgb24> pixels, int componentsX, int componentsY)
{
if (componentsX < 1) throw new ArgumentException("componentsX needs to be at least 1");
if (componentsX > 9) throw new ArgumentException("componentsX needs to be at most 9");