Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ internal MetadataDb CopySegment(int startIndex, int endIndex)
byte[] newDatabase = new byte[length];
_data.AsSpan(startIndex, length).CopyTo(newDatabase);

Span<int> newDbInts = MemoryMarshal.Cast<byte, int>(newDatabase);
Span<int> newDbInts = MemoryMarshal.Cast<byte, int>(newDatabase.AsSpan());
int locationOffset = newDbInts[0];

// Need to nudge one forward to account for the hidden quote on the string.
Expand Down