]> git.corax.cc Git - corax/commitdiff
Add a cast when assigning the return value in sys_mmap(), to avoid compiler warnings
authorMatthias Kruk <m@m10k.eu>
Thu, 2 Jan 2020 07:46:59 +0000 (16:46 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 2 Jan 2020 07:46:59 +0000 (16:46 +0900)
kernel/core/posixcall.c

index 5f20c6ced9ff8893ae8529f771b8ba52633dc298..f0fa769c9a55cb2a9056d59c2518535abae79253 100644 (file)
@@ -388,7 +388,7 @@ int sys_mmap(stack_frame_t *stk)
        }
 
        if(!ret_val) {
-               ret_val = mapped;
+               ret_val = (int)mapped;
        }
 
        return(ret_val);