Skip to content

Commit

Permalink
Fix integer overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
amacal committed Sep 16, 2016
1 parent 823bfd0 commit 689bd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/Leak.Core/Repository/RepositoryTaskVerifyRange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private Task BufferPieces(TaskData data)
{
if (seek)
{
stream.Seek(piece * metainfo.Properties.PieceSize, SeekOrigin.Begin);
stream.Seek((long)piece * metainfo.Properties.PieceSize, SeekOrigin.Begin);
}
data.Writing.Wait();
Expand Down

0 comments on commit 689bd93

Please sign in to comment.