Update ecdh.c
This commit is contained in:
2
ecdh.c
2
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 */
|
/* Run through rest if count is not multiple of bitsize of DTYPE */
|
||||||
if (i != 0)
|
if (i != 0)
|
||||||
{
|
{
|
||||||
uint32_t u32mask = (1 << 31);
|
uint32_t u32mask = ((uint32_t)1 << 31);
|
||||||
while (((*x) & u32mask) == 0)
|
while (((*x) & u32mask) == 0)
|
||||||
{
|
{
|
||||||
u32mask >>= 1;
|
u32mask >>= 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user