[tor-commits] [tor/master] USe uintptr_t for unsigned ints
teor at torproject.org
teor at torproject.org
Tue Mar 26 09:31:42 UTC 2019
commit e52653e01a2ce6655975c2f893a1d1ff7bef2af7
Author: rl1987 <rl1987 at 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);
More information about the tor-commits
mailing list