Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/gcc/dist/libcpp Add missing parentheses around...



details:   https://anonhg.NetBSD.org/src/rev/530637355042
branches:  trunk
changeset: 1023191:530637355042
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 29 08:41:57 2021 +0000

description:
Add missing parentheses around ternary operator (Etienne Brateau, via
Damien Zammit)

diffstat:

 external/gpl3/gcc/dist/libcpp/files.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r d95346caac76 -r 530637355042 external/gpl3/gcc/dist/libcpp/files.c
--- a/external/gpl3/gcc/dist/libcpp/files.c     Sun Aug 29 08:36:00 2021 +0000
+++ b/external/gpl3/gcc/dist/libcpp/files.c     Sun Aug 29 08:41:57 2021 +0000
@@ -233,7 +233,7 @@
     }
   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)



Home | Main Index | Thread Index | Old Index