From 564c5d23332e3cbfc16bd2d86081fa520daaf065 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 8 Feb 2015 17:00:32 +0000 Subject: [PATCH] start: Fix warnings if program space is > signed size --- Kernel/start.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/start.c b/Kernel/start.c index c1ecd340..8a7f28e8 100644 --- a/Kernel/start.c +++ b/Kernel/start.c @@ -77,9 +77,9 @@ void create_init(void) uputw(PROGLOAD+1 , (void *)(PROGLOAD + 7)); /* Set up things to look like the process is calling _execve() */ - udata.u_argn = PROGLOAD; - udata.u_argn1 = PROGLOAD + 0x7; /* Arguments (just "/init") */ - udata.u_argn2 = PROGLOAD + 0xb; /* Environment (none) */ + udata.u_argn = (arg_t)PROGLOAD; + udata.u_argn1 = (arg_t)(PROGLOAD + 0x7); /* Arguments (just "/init") */ + udata.u_argn2 = (arg_t)(PROGLOAD + 0xb); /* Environment (none) */ } /* to sensibly parse device names this needs to be platform-specific, -- 2.34.1