]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use tt_u64_op() for uint64_t inputs.
authorNick Mathewson <nickm@torproject.org>
Fri, 2 Feb 2018 20:23:55 +0000 (15:23 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 2 Feb 2018 20:23:55 +0000 (15:23 -0500)
src/test/test_dos.c

index 071926c28736e819e5477a5461a879e927712b93..9496b0735ce1934c50261a30ef9d6a982559727b 100644 (file)
@@ -179,8 +179,8 @@ test_dos_bucket_refill(void *arg)
   uint64_t circ_rate = get_circuit_rate_per_second();
   /* Check that the circuit rate is a positive number and smaller than the max
    * circuit count */
-  tt_int_op(circ_rate, OP_GT, 1);
-  tt_int_op(circ_rate, OP_LT, max_circuit_count);
+  tt_u64_op(circ_rate, OP_GT, 1);
+  tt_u64_op(circ_rate, OP_LT, max_circuit_count);
 
   /* Register this client */
   geoip_note_client_seen(GEOIP_CLIENT_CONNECT, addr, NULL, now);