Re: [RFC PATCH glibc 3/12] mach, hurd: Cast through uintptr_t

2023-02-12 Thread Samuel Thibault
Applied, thanks! Sergey Bugaev, le dim. 12 févr. 2023 14:10:34 +0300, a ecrit: > When casting between a pointer and an integer of a different size, GCC > emits a warning (which is escalated to a build failure by -Werror). > Indeed, if what you start with is a pointer, which you then cast to a > sh

[RFC PATCH glibc 3/12] mach, hurd: Cast through uintptr_t

2023-02-12 Thread Sergey Bugaev
When casting between a pointer and an integer of a different size, GCC emits a warning (which is escalated to a build failure by -Werror). Indeed, if what you start with is a pointer, which you then cast to a shorter integer and then back again, you're going to cut off some bits of the pointer. Bu