Switch to uintptr_t type for pointers