Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <
20230319151017.531737-13-bugaevc@gmail.com>
Rather than pointing to the value, ARG is the value itself. */
#ifdef MACH_MSG_TYPE_BIT
*t++ = io2mach_type (1, _IOTS (integer_t));
- *(integer_t *) t = (integer_t) arg;
+ *(integer_t *) t = (integer_t) (intptr_t) arg;
t = (void *) t + sizeof (integer_t);
#else
- *(integer_t *) p = (integer_t) arg;
+ *(integer_t *) p = (integer_t) (intptr_t) arg;
p = (void *) p + sizeof (integer_t);
#endif
}
-/* Initialization code run first thing by the ELF startup code. For i386/Hurd.
+/* Initialization code run first thing by the ELF startup code. For x86/Hurd.
Copyright (C) 1995-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
static void
init (void **data)
{
- int argc = (int) *data;
+ int argc = (int) (uintptr_t) *data;
char **argv = (void *) (data + 1);
char **envp = &argv[argc + 1];
struct hurd_startup_data *d;