]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a conversion warning on 32-bit clang
authorNick Mathewson <nickm@torproject.org>
Tue, 13 Jan 2015 03:33:10 +0000 (22:33 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Jan 2015 03:33:10 +0000 (22:33 -0500)
src/or/relay.c

index f878c9d78b17431862571270931ef246e36b7af4..725a14b1a6b8cbca6d31ee2df37b737dc69a5ed2 100644 (file)
@@ -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();