summaryrefslogtreecommitdiff
path: root/lcrypt/lcrypt_bits.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcrypt/lcrypt_bits.c')
-rw-r--r--lcrypt/lcrypt_bits.c2
1 files changed, 1 insertions, 1 deletions
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);