diff options
| author | frsyuki <frsyuki@users.sourceforge.jp> | 2010-04-29 00:39:45 +0900 |
|---|---|---|
| committer | frsyuki <frsyuki@users.sourceforge.jp> | 2010-04-29 00:39:45 +0900 |
| commit | b10cb658caa245d9c21abbe94f32fde02e8cba43 (patch) | |
| tree | 782cac2eb5076d844e50de49f5f0898ff4a3a1e4 /msgpack | |
| parent | 68f60568acdafb2205c1436b61bfcaf0087b1572 (diff) | |
| download | msgpack-python-b10cb658caa245d9c21abbe94f32fde02e8cba43.tar.gz | |
pack_template.h: template_unsigned_long:
wrong size checking on !defined(SIZEOF_SHORT) && !defined(SHRT_MAX)"
Diffstat (limited to 'msgpack')
| -rw-r--r-- | msgpack/pack_template.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/msgpack/pack_template.h b/msgpack/pack_template.h index f8f522f..c0a1073 100644 --- a/msgpack/pack_template.h +++ b/msgpack/pack_template.h @@ -512,9 +512,9 @@ msgpack_pack_inline_func_cint(_unsigned_long)(msgpack_pack_user x, unsigned long msgpack_pack_real_uint64(x, d); #endif #else -if(sizeof(unsigned int) == 2) { +if(sizeof(unsigned long) == 2) { msgpack_pack_real_uint16(x, d); -} else if(sizeof(unsigned int) == 4) { +} else if(sizeof(unsigned long) == 4) { msgpack_pack_real_uint32(x, d); } else { msgpack_pack_real_uint64(x, d); |
