aboutsummaryrefslogtreecommitdiff
path: root/src/rps
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-02-26 14:39:04 +0100
committerJulius Bünger <buenger@mytum.de>2019-02-26 14:39:04 +0100
commit5d0aede797cc6b645f26e0ef7b0fe435734058fa (patch)
treeac827ad0fe4212c3cec0b28e2230d1078b22c495 /src/rps
parent8fc9e63f885e4cdcfeddb28336f71adcfa9f9e3d (diff)
downloadgnunet-5d0aede797cc6b645f26e0ef7b0fe435734058fa.tar.gz
gnunet-5d0aede797cc6b645f26e0ef7b0fe435734058fa.zip
RPS: Fix non-int array subscript
Diffstat (limited to 'src/rps')
-rw-r--r--src/rps/gnunet-service-rps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 8c50cf9d5..247892ee0 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -4388,7 +4388,7 @@ do_round (void *cls)
4388 HISTOGRAM_FILE_SLOTS); 4388 HISTOGRAM_FILE_SLOTS);
4389 } 4389 }
4390 // FIXME check bounds of histogram 4390 // FIXME check bounds of histogram
4391 sub->push_delta[(CustomPeerMap_size (sub->push_map) - 4391 sub->push_delta[(uint32_t) (CustomPeerMap_size (sub->push_map) -
4392 (alpha * sub->view_size_est_need)) + 4392 (alpha * sub->view_size_est_need)) +
4393 (HISTOGRAM_FILE_SLOTS/2)]++; 4393 (HISTOGRAM_FILE_SLOTS/2)]++;
4394 if (sub == msub) 4394 if (sub == msub)