Fix hb_be_uint16()
This commit is contained in:
parent
cd7555eef2
commit
b7dd4b945b
@ -90,7 +90,7 @@ typedef int hb_mutex_t;
|
||||
|
||||
/* 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_get_unaligned(v) (uint8_t) (v[0])
|
||||
|
Loading…
Reference in New Issue
Block a user