On Sat, 1 Jun 2024, Takashi Yano wrote: > + const int destroyed = INT_MIN >> 1; /* 0b1100000000000000 */
I thought whether or not right shifting a negative number sign-extends was undefined in the C/C++ standards?
Jeremy Drake via Cygwin-patches Sat, 01 Jun 2024 12:48:23 -0700
On Sat, 1 Jun 2024, Takashi Yano wrote: > + const int destroyed = INT_MIN >> 1; /* 0b1100000000000000 */
I thought whether or not right shifting a negative number sign-extends was undefined in the C/C++ standards?