summaryrefslogtreecommitdiff
path: root/lcrypt
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-05-25 21:06:40 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-05-25 21:06:40 -0700
commitde29855e2e7d45835892dff4c87442ed93b638fe (patch)
tree6fb9c6ffd3a4237204fc8ef38506a8d82a052f52 /lcrypt
parent743b3f9410eee4f5bf2055c3673826ca17b5d67e (diff)
Fixing bad code...
Diffstat (limited to 'lcrypt')
-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);