diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-15 20:54:42 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-15 20:56:12 +0100 |
commit | 569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8 (patch) | |
tree | 61a39ba4d9fa9ee151e7946082a0dcfad68b2b1f /bits/termios.h | |
parent | 7e31d166510ac4adbf53d5e8144c709a37dd8c7a (diff) | |
download | glibc-569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8.zip glibc-569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8.tar.gz glibc-569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8.tar.bz2 |
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).
Diffstat (limited to 'bits/termios.h')
-rw-r--r-- | bits/termios.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bits/termios.h b/bits/termios.h index ae62d00..4439c2f 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. */ |