From 54e2beefc1dafea15516e505e9e30eb0f432aeb1 Mon Sep 17 00:00:00 2001 From: ngiddings Date: Tue, 23 Aug 2022 12:58:28 -0500 Subject: [PATCH] Fixed warning in syscall.c Cast NULL to 'unsigned long' to get rid of compiler warning. --- src/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syscalls.c b/src/syscalls.c index 4153084..c36954c 100644 --- a/src/syscalls.c +++ b/src/syscalls.c @@ -20,7 +20,7 @@ size_t mmap(syscall_arg_t arg_location, syscall_arg_t arg_length, syscall_arg_t { return EINVALIDARG; } - else if(location == NULL) + else if(location == (unsigned long)NULL) { return ENULLPTR; }