Skip to content
Snippets Groups Projects
Commit b23a0465 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix implicit overflow in rendcache tests

parent 4e34ef87
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment