[all-commits] [llvm/llvm-project] 91bf0a: [libc] Added static casts to fix implicit conversi...
Mikhail R. Gadelha via All-commits
all-commits at lists.llvm.org
Sat Jul 20 11:12:52 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 91bf0a073951aa1ca4c357967ed5aff891941785
https://github.com/llvm/llvm-project/commit/91bf0a073951aa1ca4c357967ed5aff891941785
Author: Mikhail R. Gadelha <mikhail at igalia.com>
Date: 2024-07-20 (Sat, 20 Jul 2024)
Changed paths:
M libc/src/__support/HashTable/randomness.h
M libc/src/__support/threads/thread.h
M libc/src/stdio/fopencookie.cpp
M libc/src/sys/auxv/linux/getauxval.cpp
M libc/src/sys/stat/linux/kernel_statx.h
Log Message:
-----------
[libc] Added static casts to fix implicit conversion warnings in 32-bit systems
This patch fixes:
randomness.h and getauxval.cpp were passing ssize_t as size_t
kernel_statx.h was assigning an uint64_t to uintptr_t
fopencookie.cpp was trying to create a FileIOResult using ssize_t but the constructor expected a size_t
thread.h was trying to call free_stack (which takes a size_t) with an unsigned long long. free_stack does the calculations using uintptr_t, so I changed the passing values to size_t
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list