[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix a conversion warning on 32-bit clang



commit 732c885b32477513b6ef374620dec32c54eb2d9c
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon Jan 12 22:33:10 2015 -0500

    Fix a conversion warning on 32-bit clang
---
 src/or/relay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/relay.c b/src/or/relay.c
index f878c9d..725a14b 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -2457,7 +2457,7 @@ cell_queues_check_size(void)
        */
       if (rend_cache_total > get_options()->MaxMemInQueues / 5) {
         const size_t bytes_to_remove =
-          rend_cache_total - (get_options()->MaxMemInQueues / 10);
+          rend_cache_total - (size_t)(get_options()->MaxMemInQueues / 10);
         rend_cache_clean_v2_descs_as_dir(time(NULL), bytes_to_remove);
         alloc -= rend_cache_total;
         alloc += rend_cache_get_total_allocation();

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits