From: Samuel Thibault Date: Sun, 15 Jan 2023 19:54:42 +0000 (+0100) Subject: hurd: Fix _NOFLSH value X-Git-Tag: glibc-2.37~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8;p=thirdparty%2Fglibc.git hurd: Fix _NOFLSH value shifting 1 (thus an integer) left 31 bit is undefined behavior. We have to make it an unsigned integer to properly get 0x80000000 (like done in other places). --- diff --git a/bits/termios.h b/bits/termios.h index ae62d008536..4439c2f14e9 100644 --- a/bits/termios.h +++ b/bits/termios.h @@ -246,7 +246,7 @@ struct termios # define NOKERNINFO (1 << 25) /* Disable VSTATUS. */ # define PENDIN (1 << 29) /* Retype pending input (state). */ #endif -#define _NOFLSH (1 << 31) /* Disable flush after interrupt. */ +#define _NOFLSH (1U << 31) /* Disable flush after interrupt. */ #define NOFLSH _NOFLSH /* Control characters. */