From c72199f1f8b3c07eee0da5950c481aea0a34e8f9 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 13 Apr 2015 14:17:01 +0200 Subject: [PATCH] Fix 64bit sigbits encoding --- lib/pc_bytes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pc_bytes.c b/lib/pc_bytes.c index 3c91f2a..2cb6dfb 100644 --- a/lib/pc_bytes.c +++ b/lib/pc_bytes.c @@ -816,7 +816,7 @@ pc_bytes_sigbits_encode_64(const PCBYTES pcb, uint64_t commonvalue, uint8_t comm else { /* First the bit into the current word */ - uint32_t v = val; + uint64_t v = val; int s = abs(shift); v >>= s; *byte_ptr |= v;