diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-03-19 18:09:55 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-03 01:03:06 +0200 |
commit | 0001a23f7a3701ef0ef7b25901c5e9990beea8f4 (patch) | |
tree | aab5cb2a2919dfffb3e212af588433838ddfc5b9 /sysdeps/mach/hurd/x86 | |
parent | af2942cc622809650b3158fe61d73a0de952a10a (diff) | |
download | glibc-0001a23f7a3701ef0ef7b25901c5e9990beea8f4.tar.gz glibc-0001a23f7a3701ef0ef7b25901c5e9990beea8f4.tar.xz glibc-0001a23f7a3701ef0ef7b25901c5e9990beea8f4.zip |
hurd: More 64-bit integer casting fixes
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-Id: <20230319151017.531737-13-bugaevc@gmail.com>
Diffstat (limited to 'sysdeps/mach/hurd/x86')
-rw-r--r-- | sysdeps/mach/hurd/x86/init-first.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/x86/init-first.c b/sysdeps/mach/hurd/x86/init-first.c index 6ca27155a4..48c330ec06 100644 --- a/sysdeps/mach/hurd/x86/init-first.c +++ b/sysdeps/mach/hurd/x86/init-first.c @@ -1,4 +1,4 @@ -/* 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. @@ -92,7 +92,7 @@ posixland_init (int argc, char **argv, char **envp) 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; |