From 51b3ec71fca6c78a9d0abaa90feafff611968e38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Tue, 26 Feb 2019 15:35:19 +0100 Subject: [PATCH] RPS: Cast to int32_t instead of uint32_t --- src/rps/gnunet-service-rps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 247892ee0..7e032997e 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c @@ -4388,7 +4388,7 @@ do_round (void *cls) HISTOGRAM_FILE_SLOTS); } // FIXME check bounds of histogram - sub->push_delta[(uint32_t) (CustomPeerMap_size (sub->push_map) - + sub->push_delta[(int32_t) (CustomPeerMap_size (sub->push_map) - (alpha * sub->view_size_est_need)) + (HISTOGRAM_FILE_SLOTS/2)]++; if (sub == msub) -- 2.25.1