diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2019-03-12 12:14:22 +0200 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2019-03-12 12:14:22 +0200 |
commit | e52653e01a2ce6655975c2f893a1d1ff7bef2af7 (patch) | |
tree | cc2a400bcae9bc1fcb2fb2baadefe49c34fdadbc | |
parent | 052ec08a085d69ac2ffb3475e61631b0aef26562 (diff) | |
download | tor-e52653e01a2ce6655975c2f893a1d1ff7bef2af7.tar.gz tor-e52653e01a2ce6655975c2f893a1d1ff7bef2af7.zip |
USe uintptr_t for unsigned ints
-rw-r--r-- | src/test/test_ptr_slow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_ptr_slow.c b/src/test/test_ptr_slow.c index 632a304177..f064a3e7c2 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); |