From de29855e2e7d45835892dff4c87442ed93b638fe Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sun, 25 May 2014 21:06:40 -0700 Subject: Fixing bad code... --- lcrypt/lcrypt_bits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcrypt/lcrypt_bits.c b/lcrypt/lcrypt_bits.c index 9712933..50daa75 100644 --- a/lcrypt/lcrypt_bits.c +++ b/lcrypt/lcrypt_bits.c @@ -70,7 +70,7 @@ static uint64_t reverse_bits(uint64_t a, int bits) static int64_t sign_extend(uint64_t a, int bits) { int64_t sret;; - if((a & (1 << (bits - 1))) != 0) + if((a & (1ULL << (bits - 1))) != 0) { a = ((uint64_t)0xffffffffffffffffLL << bits) | a; memcpy(&sret, &a, 8); -- cgit v1.2.3