提交 b7dd4b94 编写于 作者: B Behdad Esfahbod

Fix hb_be_uint16()

上级 cd7555ee
...@@ -90,7 +90,7 @@ typedef int hb_mutex_t; ...@@ -90,7 +90,7 @@ typedef int hb_mutex_t;
/* Big-endian handling */ /* Big-endian handling */
#define hb_be_uint16(v) ((uint16_t) ((((const uint8_t *)&(v))[0] >> 8) + (((const uint8_t *)&(v))[1] << 8))) #define hb_be_uint16(v) ((uint16_t) ((((const uint8_t *)&(v))[0] << 8) + (((const uint8_t *)&(v))[1])))
#define hb_be_uint8_put_unaligned(v,V) (v[0] = (V), 0) #define hb_be_uint8_put_unaligned(v,V) (v[0] = (V), 0)
#define hb_be_uint8_get_unaligned(v) (uint8_t) (v[0]) #define hb_be_uint8_get_unaligned(v) (uint8_t) (v[0])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册