Skip to content
Snippets Groups Projects
Commit e52653e0 authored by rl1987's avatar rl1987
Browse files

USe uintptr_t for unsigned ints

parent 052ec08a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment