summaryrefslogtreecommitdiff
path: root/src/SegmentMan.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-12-26 23:10:32 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-12-26 23:10:32 +0900
commitbd671403bcaeb3dcd718e8a0ddc760170c4e3557 (patch)
treec4e29cbbf2a0356ceb4bf14f791cc793d83872b6 /src/SegmentMan.cc
parentc09a5a95f4963cd67c5f3c92250ac3c1876bc430 (diff)
Fix compiler warning
Diffstat (limited to 'src/SegmentMan.cc')
-rw-r--r--src/SegmentMan.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SegmentMan.cc b/src/SegmentMan.cc
index 95f79e5c..40eef265 100644
--- a/src/SegmentMan.cc
+++ b/src/SegmentMan.cc
@@ -144,7 +144,8 @@ SharedHandle<Segment> SegmentMan::checkoutSegment
// Flush cached data here, because the cached data may be overlapped
// if BT peers are involved.
A2_LOG_DEBUG(fmt("Flushing cached data, size=%lu",
- piece->getWrDiskCacheEntry()->getSize()));
+ static_cast<unsigned long>(piece->getWrDiskCacheEntry()->
+ getSize())));
flushWrDiskCache(pieceStorage_->getWrDiskCache(), piece);
}
@@ -295,7 +296,8 @@ void SegmentMan::cancelSegmentInternal
// Flush cached data here, because the cached data may be overlapped
// if BT peers are involved.
A2_LOG_DEBUG(fmt("Flushing cached data, size=%lu",
- piece->getWrDiskCacheEntry()->getSize()));
+ static_cast<unsigned long>(piece->getWrDiskCacheEntry()
+ ->getSize())));
flushWrDiskCache(pieceStorage_->getWrDiskCache(), piece);
// TODO Exception may cause some segments (pieces) are not
// canceled.