aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_kx.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-22 14:25:06 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-22 14:25:06 +0100
commit224563a3527cce650d17208adebb20e6ec410b1e (patch)
tree41e963e92a869b71699fdbc3078ad2cdb4cd22f7 /src/core/gnunet-service-core_kx.c
parentcd6ee851252a3840dc849b29da2c0a03c9618ab0 (diff)
downloadgnunet-224563a3527cce650d17208adebb20e6ec410b1e.tar.gz
gnunet-224563a3527cce650d17208adebb20e6ec410b1e.zip
fix sign issue in bitshift
Diffstat (limited to 'src/core/gnunet-service-core_kx.c')
-rw-r--r--src/core/gnunet-service-core_kx.c4
1 files 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
319 * last were received (good for accepting out-of-order packets and 319 * last were received (good for accepting out-of-order packets and
320 * estimating reliability of the connection) 320 * estimating reliability of the connection)
321 */ 321 */
322 unsigned int last_packets_bitmap; 322 uint32_t last_packets_bitmap;
323 323
324 /** 324 /**
325 * last sequence number received on this connection (highest) 325 * last sequence number received on this connection (highest)
@@ -1573,7 +1573,7 @@ handle_encrypted (void *cls,
1573 } 1573 }
1574 if (kx->last_sequence_number_received > snum) 1574 if (kx->last_sequence_number_received > snum)
1575 { 1575 {
1576 unsigned int rotbit = 1 << (kx->last_sequence_number_received - snum - 1); 1576 uint32_t rotbit = 1U << (kx->last_sequence_number_received - snum - 1);
1577 1577
1578 if ((kx->last_packets_bitmap & rotbit) != 0) 1578 if ((kx->last_packets_bitmap & rotbit) != 0)
1579 { 1579 {