summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-12 22:33:10 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-12 22:33:10 -0500
commit732c885b32477513b6ef374620dec32c54eb2d9c (patch)
tree2fe0a749b73a3cd5de4d1f11c26f9926d69ff167 /src/or
parenta0b4c2f1bd0c5761fd82bdeb7ccfe00f9085d7ff (diff)
downloadtor-732c885b32477513b6ef374620dec32c54eb2d9c.tar.gz
tor-732c885b32477513b6ef374620dec32c54eb2d9c.zip
Fix a conversion warning on 32-bit clang
Diffstat (limited to 'src/or')
-rw-r--r--src/or/relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index f878c9d78b..725a14b1a6 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();