about summary refs log tree commit diff
path: root/bits
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-15 20:54:42 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-15 20:56:12 +0100
commit569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8 (patch)
tree61a39ba4d9fa9ee151e7946082a0dcfad68b2b1f /bits
parent7e31d166510ac4adbf53d5e8144c709a37dd8c7a (diff)
downloadglibc-569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8.tar.gz
glibc-569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8.tar.xz
glibc-569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8.zip
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')
-rw-r--r--bits/termios.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bits/termios.h b/bits/termios.h
index ae62d00853..4439c2f14e 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.  */