Author: alanmc
Date: 2007-06-14 23:22:50 -0400 (Thu, 14 Jun 2007)
New Revision: 79669
Modified:
trunk/bitsharp/src/MonoTorrent/Common/Torrent.cs
Log:
Possible fix for a reported bug in torrent loading
Modified: trunk/bitsharp/src/MonoTorrent/Common/Torrent.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent/Common/Torrent.cs 2007-06-15 03:22:12 UTC
(rev 79668)
+++ trunk/bitsharp/src/MonoTorrent/Common/Torrent.cs 2007-06-15 03:22:50 UTC
(rev 79669)
@@ -413,7 +413,7 @@
startIndex = j;
totalSize += length;
- endIndex = (int)(totalSize + pieceLength / 2) /
this.pieceLength;
+ endIndex = (int)((totalSize + pieceLength / 2) /
this.pieceLength);
j = endIndex;
this.torrentFiles[i++] = new TorrentFile(path, length,
startIndex, endIndex, md5sum, ed2k, sha1);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches