diff --git a/test/no-mmap-inval.c b/test/no-mmap-inval.c index bf4831742..063d12f1c 100644 --- a/test/no-mmap-inval.c +++ b/test/no-mmap-inval.c @@ -24,7 +24,7 @@ int main(int argc, char *argv[]) if (argc > 1) return T_EXIT_SKIP; - p.cq_off.user_addr = (unsigned long long) valloc(8192); + p.cq_off.user_addr = (unsigned long long) (uintptr_t) valloc(8192); ret = io_uring_setup(2, &p); if (ret != -EFAULT) {