mirror of https://github.com/aria2/aria2
Fix compiler warning
parent
c09a5a95f4
commit
bd671403bc
|
@ -144,7 +144,8 @@ SharedHandle<Segment> SegmentMan::checkoutSegment
|
||||||
// Flush cached data here, because the cached data may be overlapped
|
// Flush cached data here, because the cached data may be overlapped
|
||||||
// if BT peers are involved.
|
// if BT peers are involved.
|
||||||
A2_LOG_DEBUG(fmt("Flushing cached data, size=%lu",
|
A2_LOG_DEBUG(fmt("Flushing cached data, size=%lu",
|
||||||
piece->getWrDiskCacheEntry()->getSize()));
|
static_cast<unsigned long>(piece->getWrDiskCacheEntry()->
|
||||||
|
getSize())));
|
||||||
flushWrDiskCache(pieceStorage_->getWrDiskCache(), piece);
|
flushWrDiskCache(pieceStorage_->getWrDiskCache(), piece);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -295,7 +296,8 @@ void SegmentMan::cancelSegmentInternal
|
||||||
// Flush cached data here, because the cached data may be overlapped
|
// Flush cached data here, because the cached data may be overlapped
|
||||||
// if BT peers are involved.
|
// if BT peers are involved.
|
||||||
A2_LOG_DEBUG(fmt("Flushing cached data, size=%lu",
|
A2_LOG_DEBUG(fmt("Flushing cached data, size=%lu",
|
||||||
piece->getWrDiskCacheEntry()->getSize()));
|
static_cast<unsigned long>(piece->getWrDiskCacheEntry()
|
||||||
|
->getSize())));
|
||||||
flushWrDiskCache(pieceStorage_->getWrDiskCache(), piece);
|
flushWrDiskCache(pieceStorage_->getWrDiskCache(), piece);
|
||||||
// TODO Exception may cause some segments (pieces) are not
|
// TODO Exception may cause some segments (pieces) are not
|
||||||
// canceled.
|
// canceled.
|
||||||
|
|
Loading…
Reference in New Issue