commit e52653e01a2ce6655975c2f893a1d1ff7bef2af7 Author: rl1987 rl1987@sdf.lonestar.org Date: Tue Mar 12 12:14:22 2019 +0200
USe uintptr_t for unsigned ints --- src/test/test_ptr_slow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/test_ptr_slow.c b/src/test/test_ptr_slow.c index 632a30417..f064a3e7c 100644 --- a/src/test/test_ptr_slow.c +++ b/src/test/test_ptr_slow.c @@ -44,9 +44,9 @@ test_int_voidstar_interop(void *arg) static void assert_uint_voidptr_roundtrip(unsigned int a) { - intptr_t ap = (intptr_t)a; + uintptr_t ap = (uintptr_t)a; void *b = (void *)ap; - intptr_t c = (intptr_t)b; + uintptr_t c = (uintptr_t)b; void *d = (void *)c;
tt_assert(ap == c);
tor-commits@lists.torproject.org