Browse Source

2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	Fixed infinite loop in checksum checking.
	* src/IteratableChecksumValidator.cc
Tatsuhiro Tsujikawa 17 năm trước cách đây
mục cha
commit
b1d51f2442
2 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 5 0
      ChangeLog
  2. 1 1
      src/IteratableChecksumValidator.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-05-09  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	Fixed infinite loop in checksum checking.
+	* src/IteratableChecksumValidator.cc
+
 2008-05-08  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	Set _supportsPersistentConnection to true by default.

+ 1 - 1
src/IteratableChecksumValidator.cc

@@ -84,7 +84,7 @@ void IteratableChecksumValidator::validateChunk()
 
 bool IteratableChecksumValidator::finished() const
 {
-  if((uint16_t)_currentOffset >= _dctx->getTotalLength()) {
+  if((uint64_t)_currentOffset >= _dctx->getTotalLength()) {
     _pieceStorage->getDiskAdaptor()->disableDirectIO();
     return true;
   } else {