diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-08 23:26:51 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-12-09 21:39:43 +0900 |
| commit | 7989cd898dc0bfef40ab1a7e2b747676620d6517 (patch) | |
| tree | 62552567c7890a84b3acd12c899ff9235e2523ee /src/MSEHandshake.h | |
| parent | 30e0e19e671697f8f62b43b1e03772ad29ca2407 (diff) | |
Use int or int32_t instead of size_t where suitable
Diffstat (limited to 'src/MSEHandshake.h')
| -rw-r--r-- | src/MSEHandshake.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/MSEHandshake.h b/src/MSEHandshake.h index 2d3ea0d1..aa8aaf77 100644 --- a/src/MSEHandshake.h +++ b/src/MSEHandshake.h @@ -68,13 +68,13 @@ public: }; private: - static const size_t PRIME_BITS = 768; - static const size_t KEY_LENGTH = (PRIME_BITS+7)/8; - static const size_t VC_LENGTH = 8; + static const size_t PRIME_BITS = 768U; + static const size_t KEY_LENGTH = (PRIME_BITS+7U)/8U; + static const size_t VC_LENGTH = 8U; // The largest buffering occurs when receiver receives step2 // handshake. We believe that IA is less than or equal to // BtHandshakeMessage::MESSAGE_LENGTH - static const size_t MAX_BUFFER_LENGTH = 636; + static const size_t MAX_BUFFER_LENGTH = 636U; cuid_t cuid_; SharedHandle<SocketCore> socket_; |
