diff options
Diffstat (limited to 'src/nse/gnunet-service-nse.c')
-rw-r--r-- | src/nse/gnunet-service-nse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
439 | if (matching_bits == 0) | 439 | if (matching_bits == 0) |
440 | return GNUNET_TIME_UNIT_ZERO; | 440 | return GNUNET_TIME_UNIT_ZERO; |
441 | d = get_matching_bits_delay (matching_bits - 1); | 441 | d = get_matching_bits_delay (matching_bits - 1); |
442 | i = d / (double) (hop_count_max + 1); | 442 | i = (uint32_t) (d / (double) (hop_count_max + 1)); |
443 | ret.rel_value = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, i + 1); | 443 | ret.rel_value = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, i + 1); |
444 | return ret; | 444 | return ret; |
445 | #else | 445 | #else |