From f7bdda88281812d90293901454e425d3ab282773 Mon Sep 17 00:00:00 2001 From: frsyuki Date: Mon, 29 Mar 2010 21:18:01 +0900 Subject: [PATCH] cpp: fixes pack_short(int) -> pack_short(short) --- cpp/msgpack/pack.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/msgpack/pack.hpp b/cpp/msgpack/pack.hpp index b7b3ca1..6a91971 100644 --- a/cpp/msgpack/pack.hpp +++ b/cpp/msgpack/pack.hpp @@ -45,7 +45,7 @@ public: packer& pack_int32(uint32_t d); packer& pack_int64(uint64_t d); - packer& pack_short(int d); + packer& pack_short(short d); packer& pack_int(int d); packer& pack_long(long d); packer& pack_long_long(long long d); @@ -183,7 +183,7 @@ inline packer& packer::pack_int64(uint64_t d) template -inline packer& packer::pack_short(int d) +inline packer& packer::pack_short(short d) { _pack_short(m_stream, d); return *this; } template