aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--liberty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/liberty.c b/liberty.c
index b79884f..4b9f78a 100644
--- a/liberty.c
+++ b/liberty.c
@@ -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;
}