tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



Author: Etienne Brateau <etienne.brateau%gmail.com@localhost>
Signed-off-by: Damien Zammit <damien%zamaudio.com@localhost>
---
 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



Home | Main Index | Thread Index | Old Index