From 224563a3527cce650d17208adebb20e6ec410b1e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 22 Feb 2017 14:25:06 +0100 Subject: [PATCH] fix sign issue in bitshift --- src/core/gnunet-service-core_kx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index a0c343737..906898512 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c @@ -319,7 +319,7 @@ struct GSC_KeyExchangeInfo * last were received (good for accepting out-of-order packets and * estimating reliability of the connection) */ - unsigned int last_packets_bitmap; + uint32_t last_packets_bitmap; /** * last sequence number received on this connection (highest) @@ -1573,7 +1573,7 @@ handle_encrypted (void *cls, } if (kx->last_sequence_number_received > snum) { - unsigned int rotbit = 1 << (kx->last_sequence_number_received - snum - 1); + uint32_t rotbit = 1U << (kx->last_sequence_number_received - snum - 1); if ((kx->last_packets_bitmap & rotbit) != 0) { -- 2.25.1