[tor/master] Fix implicit overflow in rendcache tests

commit b23a0465f107dee0a78b544536396f09fa89ab27 Author: Nick Mathewson <nickm@torproject.org> Date: Wed Oct 7 14:29:14 2015 -0400 Fix implicit overflow in rendcache tests --- src/test/test_rendcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c index f21c7c4..6075d39 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;
participants (1)
-
nickm@torproject.org