diff options
| author | Brent Cook <busterb@gmail.com> | 2025-10-07 03:48:53 -0500 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2025-10-07 03:48:53 -0500 |
| commit | 2f78b04fd75ae457f8a1297909dd3b6f612bd21f (patch) | |
| tree | 0f3dff54e540842aa79ced381527d2bcb0fdea90 /tests/compat | |
| parent | 7a841ee9732656e2db6679c85a0853108fbefe45 (diff) | |
| download | portable-2f78b04fd75ae457f8a1297909dd3b6f612bd21f.tar.gz portable-2f78b04fd75ae457f8a1297909dd3b6f612bd21f.tar.bz2 portable-2f78b04fd75ae457f8a1297909dd3b6f612bd21f.zip | |
add explicit parens for combined logic
Diffstat (limited to 'tests/compat')
| -rw-r--r-- | tests/compat/pipe2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/compat/pipe2.c b/tests/compat/pipe2.c index c27a858..d7b4062 100644 --- a/tests/compat/pipe2.c +++ b/tests/compat/pipe2.c | |||
| @@ -42,7 +42,7 @@ static int setfl(int fd, int flag) | |||
| 42 | static void create_issue_1069_sentinels(int socket_vector[2]) | 42 | static void create_issue_1069_sentinels(int socket_vector[2]) |
| 43 | { | 43 | { |
| 44 | int fd = open("CONIN$", O_RDONLY); | 44 | int fd = open("CONIN$", O_RDONLY); |
| 45 | if (fd == -1 || fd > socket_vector[0] && fd > socket_vector[1]) { | 45 | if (fd == -1 || (fd > socket_vector[0] && fd > socket_vector[1])) { |
| 46 | return; | 46 | return; |
| 47 | } | 47 | } |
| 48 | create_issue_1069_sentinels(socket_vector); | 48 | create_issue_1069_sentinels(socket_vector); |
