]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix implicit overflow in rendcache tests
authorNick Mathewson <nickm@torproject.org>
Wed, 7 Oct 2015 18:29:14 +0000 (14:29 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 7 Oct 2015 18:29:14 +0000 (14:29 -0400)
src/test/test_rendcache.c

index f21c7c44390f1c590518f21af3a115042337a426..6075d394a9feb734c5e935dcef47a4a5a97cc097 100644 (file)
@@ -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;