aboutsummaryrefslogtreecommitdiff
path: root/liberty.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-08-17 01:53:49 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-08-17 01:53:49 +0200
commitee2457df7c762f379a4cd3e434d99294aa68387c (patch)
tree202bc31de91092aba284721434a4a42c1575fd87 /liberty.c
parent649c351560bf9fea9e7b889c117afa94a44150d6 (diff)
downloadliberty-ee2457df7c762f379a4cd3e434d99294aa68387c.tar.gz
liberty-ee2457df7c762f379a4cd3e434d99294aa68387c.tar.xz
liberty-ee2457df7c762f379a4cd3e434d99294aa68387c.zip
Fix an embarrassing bug in msg_unpacker
Diffstat (limited to 'liberty.c')
-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;
}