From ced74262e9a1a617d52627fb9fd31052d09fc4a2 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 24 Nov 2011 16:25:55 +0000 Subject: - Added explicit cast, just in case --- src/nse/gnunet-service-nse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nse/gnunet-service-nse.c') diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index 861be5914..33ec51f03 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c @@ -439,7 +439,7 @@ get_delay_randomization (uint32_t matching_bits) if (matching_bits == 0) return GNUNET_TIME_UNIT_ZERO; d = get_matching_bits_delay (matching_bits - 1); - i = d / (double) (hop_count_max + 1); + i = (uint32_t) (d / (double) (hop_count_max + 1)); ret.rel_value = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, i + 1); return ret; #else -- cgit v1.2.3