summaryrefslogtreecommitdiff
path: root/cpp/object.cpp
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:09:57 +0000
committerfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:09:57 +0000
commit1222466a1c52161a3da3c3c5ce552d4b90e32bf6 (patch)
treea864485f63ad3b88a83a02d9a16dab581f767270 /cpp/object.cpp
parent76dda6d36e5a2edbe21443bd7344c41160373e2e (diff)
downloadmsgpack-python-1222466a1c52161a3da3c3c5ce552d4b90e32bf6.tar.gz
lang/c/msgpack: c-macro based template
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@66 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
Diffstat (limited to 'cpp/object.cpp')
-rw-r--r--cpp/object.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/object.cpp b/cpp/object.cpp
index 7bb9841..ef2a68c 100644
--- a/cpp/object.cpp
+++ b/cpp/object.cpp
@@ -155,35 +155,35 @@ inline void numeric_pack(dynamic_packer& p, V v);
template <>
inline void numeric_pack<uint8_t>(dynamic_packer& p, uint8_t v)
- { p.pack_unsigned_int_8(v); }
+ { p.pack_uint8(v); }
template <>
inline void numeric_pack<uint16_t>(dynamic_packer& p, uint16_t v)
- { p.pack_unsigned_int_16(v); }
+ { p.pack_uint16(v); }
template <>
inline void numeric_pack<uint32_t>(dynamic_packer& p, uint32_t v)
- { p.pack_unsigned_int_32(v); }
+ { p.pack_uint32(v); }
template <>
inline void numeric_pack<uint64_t>(dynamic_packer& p, uint64_t v)
- { p.pack_unsigned_int_64(v); }
+ { p.pack_uint64(v); }
template <>
inline void numeric_pack<int8_t>(dynamic_packer& p, int8_t v)
- { p.pack_unsigned_int_8(v); }
+ { p.pack_int8(v); }
template <>
inline void numeric_pack<int16_t>(dynamic_packer& p, int16_t v)
- { p.pack_unsigned_int_16(v); }
+ { p.pack_int16(v); }
template <>
inline void numeric_pack<int32_t>(dynamic_packer& p, int32_t v)
- { p.pack_unsigned_int_32(v); }
+ { p.pack_int32(v); }
template <>
inline void numeric_pack<int64_t>(dynamic_packer& p, int64_t v)
- { p.pack_unsigned_int_64(v); }
+ { p.pack_int64(v); }
template <>
inline void numeric_pack<float>(dynamic_packer& p, float v)