diff options
| author | Masahiro Nakagawa <repeatedly@gmail.com> | 2010-04-07 19:54:14 +0900 |
|---|---|---|
| committer | Masahiro Nakagawa <repeatedly@gmail.com> | 2010-04-07 19:54:14 +0900 |
| commit | bd36ac2c0c99fa8e95b50ba12c2cc8ccb8b413f4 (patch) | |
| tree | ae30d6b05f665a51ce24f595d655cd2be9f4123e /cpp/msgpack | |
| parent | c6186f2c01e159644b7ed19e865c8ac20d169453 (diff) | |
| download | msgpack-python-bd36ac2c0c99fa8e95b50ba12c2cc8ccb8b413f4.tar.gz | |
cpp: fixes argument type of pack_int* methods
Diffstat (limited to 'cpp/msgpack')
| -rw-r--r-- | cpp/msgpack/pack.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/msgpack/pack.hpp b/cpp/msgpack/pack.hpp index 6a91971..3a68aa6 100644 --- a/cpp/msgpack/pack.hpp +++ b/cpp/msgpack/pack.hpp @@ -1,4 +1,4 @@ -// +1// // MessagePack for C++ serializing routine // // Copyright (C) 2008-2009 FURUHASHI Sadayuki @@ -40,10 +40,10 @@ public: packer<Stream>& pack_uint16(uint16_t d); packer<Stream>& pack_uint32(uint32_t d); packer<Stream>& pack_uint64(uint64_t d); - packer<Stream>& pack_int8(uint8_t d); - packer<Stream>& pack_int16(uint16_t d); - packer<Stream>& pack_int32(uint32_t d); - packer<Stream>& pack_int64(uint64_t d); + packer<Stream>& pack_int8(int8_t d); + packer<Stream>& pack_int16(int16_t d); + packer<Stream>& pack_int32(int32_t d); + packer<Stream>& pack_int64(int64_t d); packer<Stream>& pack_short(short d); packer<Stream>& pack_int(int d); @@ -166,19 +166,19 @@ inline packer<Stream>& packer<Stream>::pack_uint64(uint64_t d) { _pack_uint64(m_stream, d); return *this; } template <typename Stream> -inline packer<Stream>& packer<Stream>::pack_int8(uint8_t d) +inline packer<Stream>& packer<Stream>::pack_int8(int8_t d) { _pack_int8(m_stream, d); return *this; } template <typename Stream> -inline packer<Stream>& packer<Stream>::pack_int16(uint16_t d) +inline packer<Stream>& packer<Stream>::pack_int16(int16_t d) { _pack_int16(m_stream, d); return *this; } template <typename Stream> -inline packer<Stream>& packer<Stream>::pack_int32(uint32_t d) +inline packer<Stream>& packer<Stream>::pack_int32(int32_t d) { _pack_int32(m_stream, d); return *this; } template <typename Stream> -inline packer<Stream>& packer<Stream>::pack_int64(uint64_t d) +inline packer<Stream>& packer<Stream>::pack_int64(int64_t d) { _pack_int64(m_stream, d); return *this;} |
