USe uintptr_t for unsigned ints

This commit is contained in:
rl1987 2019-03-12 12:14:22 +02:00
parent 052ec08a08
commit e52653e01a

View File

@ -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);