diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-08 00:03:25 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-09 21:39:43 +0900 |
| commit | 9d15d732edd512a3ff03147da459feaddde511fe (patch) | |
| tree | 4206d8328e73cdf57e88830fb6b5f64c18f39f73 /src/Peer.cc | |
| parent | 12988e5282ef52a2806cbaca9f4074698f35e399 (diff) | |
Use int32_t for piece length instead of size_t
Diffstat (limited to 'src/Peer.cc')
| -rw-r--r-- | src/Peer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Peer.cc b/src/Peer.cc index 07d2f22a..e31ae10a 100644 --- a/src/Peer.cc +++ b/src/Peer.cc @@ -73,7 +73,7 @@ void Peer::usedBy(cuid_t cuid) cuid_ = cuid; } -void Peer::allocateSessionResource(size_t pieceLength, off_t totalLength) +void Peer::allocateSessionResource(int32_t pieceLength, off_t totalLength) { delete res_; res_ = new PeerSessionResource(pieceLength, totalLength); @@ -81,7 +81,7 @@ void Peer::allocateSessionResource(size_t pieceLength, off_t totalLength) updateSeeder(); } -void Peer::reconfigureSessionResource(size_t pieceLength, off_t totalLength) +void Peer::reconfigureSessionResource(int32_t pieceLength, off_t totalLength) { assert(res_); res_->reconfigure(pieceLength, totalLength); @@ -192,13 +192,13 @@ void Peer::snubbing(bool b) res_->snubbing(b); } -void Peer::updateUploadLength(size_t bytes) +void Peer::updateUploadLength(int32_t bytes) { assert(res_); res_->updateUploadLength(bytes); } -void Peer::updateDownloadLength(size_t bytes) +void Peer::updateDownloadLength(int32_t bytes) { assert(res_); res_->updateDownloadLength(bytes); |
