From: Christian Grothoff Date: Wed, 22 Feb 2017 13:25:06 +0000 (+0100) Subject: fix sign issue in bitshift X-Git-Tag: taler-0.2.1~88 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=224563a3527cce650d17208adebb20e6ec410b1e;p=oweals%2Fgnunet.git fix sign issue in bitshift --- 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) {