From 3eba9eeb4b88072b4e2011fd76c5c3450dfbb8fa Mon Sep 17 00:00:00 2001
From: huitema <huitema@huitema.net>
Date: Fri, 5 Oct 2018 10:27:59 -0700
Subject: [PATCH] Fix gcc warning on operator precedence

---
 picoquic/logger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/picoquic/logger.c b/picoquic/logger.c
index be241443..0d4b4078 100644
--- a/picoquic/logger.c
+++ b/picoquic/logger.c
@@ -880,7 +880,7 @@ size_t picoquic_log_retire_connection_id_frame(FILE* F, uint8_t* bytes, size_t b
     }
 
     if (l_seq == 0 || byte_index > bytes_max) {
-        fprintf(F, "    Malformed RETIRE CONNECTION ID, requires %d bytes out of %d\n", (int)(byte_index + (l_seq == 0)?1:0), (int)bytes_max);
+        fprintf(F, "    Malformed RETIRE CONNECTION ID, requires %d bytes out of %d\n", (int)(byte_index + ((l_seq == 0)?1:0)), (int)bytes_max);
         byte_index = bytes_max;
     }
     else {
-- 
GitLab