Skip to content

Commit bcd319e

Browse files
authored
Make compatible with Unity 2020 LTS
1 parent 38eb7fc commit bcd319e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/SpanExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ public static NativeArray<T> ToNativeArray<T>(this Span<T> source, Allocator all
5555
public static NativeArray<T> ToNativeArray<T>(this ReadOnlySpan<T> source, Allocator allocator)
5656
where T : unmanaged
5757
{
58-
NativeArray<T> newArray = new(source.Length, allocator, NativeArrayOptions.UninitializedMemory);
58+
NativeArray<T> newArray = new NativeArray<T>(source.Length, allocator, NativeArrayOptions.UninitializedMemory);
5959
newArray.CopyFrom(source);
6060
return newArray;
6161
}
6262
}
63-
}
63+
}

0 commit comments

Comments
 (0)