소스 검색

Fix implicit overflow in rendcache tests

Nick Mathewson 8 년 전
부모
커밋
b23a0465f1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/test/test_rendcache.c

+ 2 - 2
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;