From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id CE9D43858D32; Sun, 15 Jan 2023 19:56:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE9D43858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673812598; bh=Ao5BcSvub1JSAtSDHjihFsMx+uwt4ArW4IThPNMzICU=; h=From:To:Subject:Date:From; b=ypHXVeFIxMKbi6ivBzrCpoa6lCQBTVG2AKrdOtd5yLlJZZowwrgzLnViZ2jIE13nM deSeq9CvfSMF/tfHj5v2eN9LHaSLjpleh29mF8dQJCco1CLW95bKepHiG0nyjSGfGF AratXlTubQtpfu+8mGAekB2df62SM1E+S7mhd/vA= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] hurd: Fix _NOFLSH value X-Act-Checkin: glibc X-Git-Author: Samuel Thibault X-Git-Refname: refs/heads/master X-Git-Oldrev: 7e31d166510ac4adbf53d5e8144c709a37dd8c7a X-Git-Newrev: 569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8 Message-Id: <20230115195638.CE9D43858D32@sourceware.org> Date: Sun, 15 Jan 2023 19:56:38 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8 commit 569cfcc6bf35c28112ca8d7112e9eb4a22bed5b8 Author: Samuel Thibault Date: Sun Jan 15 20:54:42 2023 +0100 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: --- bits/termios.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */