diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-11-24 16:25:55 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-11-24 16:25:55 +0000 |
commit | ced74262e9a1a617d52627fb9fd31052d09fc4a2 (patch) | |
tree | 750d90fd637c0022ff57e517e434d4dc15f511ca /src/nse/gnunet-service-nse.c | |
parent | f10fbdf149dcd827c9e871f6cb6183e943361e58 (diff) | |
download | gnunet-ced74262e9a1a617d52627fb9fd31052d09fc4a2.tar.gz gnunet-ced74262e9a1a617d52627fb9fd31052d09fc4a2.zip |
- Added explicit cast, just in case
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 |