From 23f744cadac1b2fbf59e89bcc5df4dc57de1c368 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 15 Jul 2007 08:06:06 +0000 Subject: [PATCH] fix small torrent issue --- libtorrent/src/piece_picker.cpp | 2 +- libtorrent/src/storage.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libtorrent/src/piece_picker.cpp b/libtorrent/src/piece_picker.cpp index 122b575e2..3f9adcc75 100755 --- a/libtorrent/src/piece_picker.cpp +++ b/libtorrent/src/piece_picker.cpp @@ -1066,9 +1066,9 @@ namespace libtorrent || m_piece_map[piece].priority(m_sequenced_download_threshold) < 2) { ++piece; + if (piece == int(m_piece_map.size())) piece = 0; // could not find any more pieces if (piece == start_piece) return; - if (piece == int(m_piece_map.size())) piece = 0; } assert(m_piece_map[piece].downloading == false); diff --git a/libtorrent/src/storage.cpp b/libtorrent/src/storage.cpp index 07071785d..793f95365 100755 --- a/libtorrent/src/storage.cpp +++ b/libtorrent/src/storage.cpp @@ -1037,13 +1037,13 @@ namespace libtorrent switch (buf.f_type) { case 0x5346544e: // NTFS - case 0x65735546: // NTFS-3G case 0xEF51: // EXT2 OLD case 0xEF53: // EXT2 and EXT3 case 0x00011954: // UFS case 0x52654973: // ReiserFS case 0x52345362: // Reiser4 case 0x58465342: // XFS + case 0x65735546: // NTFS-3G return true; } }