From ee2457df7c762f379a4cd3e434d99294aa68387c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Mon, 17 Aug 2015 01:53:49 +0200
Subject: [PATCH] Fix an embarrassing bug in msg_unpacker
---
liberty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}