Skip to content

Commit

Permalink
Fix FromImmutableArray segment based
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Aug 21, 2023
1 parent d55a5ca commit d121e92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal static FlatArray<T> FromImmutableArray(ImmutableArray<T> source, int st
{
Debug.Assert(InnerAllocHelper.IsSegmentWithin(start, length, source.IsDefault ? default : source.Length));

if (source.IsDefaultOrEmpty)
if (length == default)
{
return default;
}
Expand Down

0 comments on commit d121e92

Please sign in to comment.