aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_rendcache.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-10-07 14:29:14 -0400
committerNick Mathewson <nickm@torproject.org>2015-10-07 14:29:14 -0400
commitb23a0465f107dee0a78b544536396f09fa89ab27 (patch)
treec11120454193af12b969067c36223c3f32a8581d /src/test/test_rendcache.c
parent4e34ef87a48421e9b90bea30c5b1110ab0df81c2 (diff)
downloadtor-b23a0465f107dee0a78b544536396f09fa89ab27.tar.gz
tor-b23a0465f107dee0a78b544536396f09fa89ab27.zip
Fix implicit overflow in rendcache tests
Diffstat (limited to 'src/test/test_rendcache.c')
-rw-r--r--src/test/test_rendcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c
index f21c7c4439..6075d394a9 100644
--- a/src/test/test_rendcache.c
+++ b/src/test/test_rendcache.c
@@ -659,11 +659,11 @@ test_rend_cache_increment_allocation(void *data)
// Test when there are too many allocations
rend_cache_total_allocation = SIZE_MAX-1;
rend_cache_increment_allocation(2);
- tt_int_op(rend_cache_total_allocation, OP_EQ, SIZE_MAX);
+ tt_u64_op(rend_cache_total_allocation, OP_EQ, SIZE_MAX);
// And again
rend_cache_increment_allocation(2);
- tt_int_op(rend_cache_total_allocation, OP_EQ, SIZE_MAX);
+ tt_u64_op(rend_cache_total_allocation, OP_EQ, SIZE_MAX);
done:
(void)0;