From 8aca990071bf88ef0970068dfd984d581c0282fb Mon Sep 17 00:00:00 2001 From: kokke Date: Thu, 9 Nov 2017 23:04:57 +0100 Subject: [PATCH] Update ecdh.c --- ecdh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecdh.c b/ecdh.c index 2a514a0..ffe7afc 100644 --- a/ecdh.c +++ b/ecdh.c @@ -288,7 +288,7 @@ static int bitvec_degree(const bitvec_t x) /* Run through rest if count is not multiple of bitsize of DTYPE */ if (i != 0) { - uint32_t u32mask = (1 << 31); + uint32_t u32mask = ((uint32_t)1 << 31); while (((*x) & u32mask) == 0) { u32mask >>= 1;