Fix an embarrassing bug in msg_unpacker

This commit is contained in:
Přemysl Eric Janouch 2015-08-17 01:53:49 +02:00
parent 649c351560
commit ee2457df7c
1 changed files with 1 additions and 1 deletions

View File

@ -2089,7 +2089,7 @@ msg_unpacker_u16 (struct msg_unpacker *self, uint16_t *value)
{
UNPACKER_INT_BEGIN
*value
= (uint16_t) x[0] << 24 | (uint16_t) x[1] << 16;
= (uint16_t) x[0] << 8 | (uint16_t) x[1];
return true;
}