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/c5878a0d6957
branches:  trunk
changeset: 985515:c5878a0d6957
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 cbc36924c46f -r c5878a0d6957 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