summaryrefslogtreecommitdiff
path: root/devel/php5-msgpack/files/patch-msgpack__pack_template.h
blob: 1c53c27def1913491fe175da23d8a23b3befc0b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- ./msgpack/pack_template.h.orig	2011-10-06 05:03:16.000000000 +0400
+++ ./msgpack/pack_template.h	2012-05-28 15:06:00.762504244 +0400
@@ -728,7 +728,7 @@
 msgpack_pack_inline_func(_raw)(msgpack_pack_user x, size_t l)
 {
 	if(l < 32) {
-		unsigned char d = 0xa0 | (uint8_t)l;
+		unsigned char d = 0xa0 | l;
 		msgpack_pack_append_buffer(x, &TAKE8_8(d), 1);
 	} else if(l < 65536) {
 		unsigned char buf[3];