From: Matthias Kruk Date: Thu, 2 Jan 2020 07:46:59 +0000 (+0900) Subject: Add a cast when assigning the return value in sys_mmap(), to avoid compiler warnings X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=7c4075b7c0980c2014daa661cb54017f637f6277;p=corax Add a cast when assigning the return value in sys_mmap(), to avoid compiler warnings --- diff --git a/kernel/core/posixcall.c b/kernel/core/posixcall.c index 5f20c6c..f0fa769 100644 --- a/kernel/core/posixcall.c +++ b/kernel/core/posixcall.c @@ -388,7 +388,7 @@ int sys_mmap(stack_frame_t *stk) } if(!ret_val) { - ret_val = mapped; + ret_val = (int)mapped; } return(ret_val);