Skip to content

Commit

Permalink
Fixed compile error in Unity 2018.
Browse files Browse the repository at this point in the history
  • Loading branch information
timcassell committed Nov 17, 2024
1 parent 9520447 commit 8d8953d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Package/Core/ForOldRuntime/Span/SpanExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public static void Sort<T>(this Span<T> span)
// AsSpan extension exists in netstandard2.1 and in the Span nuget package. We only add this in Unity where we're not using nuget packages.
public static Span<T> AsSpan<T>(this T[] array, int start)
=> new Span<T>(array, start, array.Length);

public static Span<T> AsSpan<T>(this T[] array)
=> new Span<T>(array, 0, array.Length);
#endif
}
}

0 comments on commit 8d8953d

Please sign in to comment.