[PATCH 1/3] gcc: Add missing parentheses around ternary operator

Damien Zammit <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain,gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
Author: Etienne Brateau <[email protected]>
Signed-off-by: Damien Zammit <[email protected]>
---
 external/gpl3/gcc/dist/libcpp/files.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/external/gpl3/gcc/dist/libcpp/files.c b/external/gpl3/gcc/dist/libcpp/files.c
index 0f4ba68f612e..7b3e1fa48997 100644
--- a/external/gpl3/gcc/dist/libcpp/files.c
+++ b/external/gpl3/gcc/dist/libcpp/files.c
@@ -233,7 +233,7 @@ open_file (_cpp_file *file)
     }
   else
     file->fd = open (file->path, O_RDONLY | O_NOCTTY | O_BINARY
-		     | (cpp_restricted != NULL) ? O_NONBLOCK : 0, 0666);
+		     | ((cpp_restricted != NULL) ? O_NONBLOCK : 0), 0666);
 
 
   if (file->fd != -1)
-- 
2.25.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.