Sitelet https://github.com/MessagePack-CSharp/MessagePack-CSharp/pull/1685/files
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 @@ -440,7 +440,7 @@ private static T DeserializeFromSequenceAndRewindStreamIfPossible<T>(Stream stre
if (streamToRewind.CanSeek && !reader.End)
{
// Reverse the stream as many bytes as we left unread.
int bytesNotRead = checked((int)reader.Sequence.Slice(reader.Position).Length);
long bytesNotRead = reader.Sequence.Slice(reader.Position).Length;
streamToRewind.Seek(-bytesNotRead, SeekOrigin.Current);
}

Expand Down