bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49261: Segfault during loadup


From: Paul Eggert
Subject: bug#49261: Segfault during loadup
Date: Mon, 12 Jul 2021 07:50:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 7/12/21 5:07 AM, Eli Zaretskii wrote:

Yes that GCC warning was bogus, and your pacification of GCC is valid

Hmm... is it really a bogus warning?  VALMASK is a 64-bit value, and
uintptr_t is 32-bit wide.

It's bogus in the sense that 'uintptr_t mask = VALMASK;' has well-defined behavior in C; there is no undefined behavior there, since VALMASK is an integer and uintptr_t is unsigned. And truncation is what is wanted here, so the warning is bogus.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]