From 9c0799314e1f69966521253455928b74e7f300b8 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 22 Oct 2018 17:46:25 +0200 Subject: [PATCH] Add parenthesis in boolean expression This fixes a compiler warning: scanutils.cpp:444:32: warning: '&&' within '||' [-Wlogical-op-parentheses] Signed-off-by: Stefan Weil --- src/ccutil/scanutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ccutil/scanutils.cpp b/src/ccutil/scanutils.cpp index 8d7eb4c8e9..071bf553f7 100644 --- a/src/ccutil/scanutils.cpp +++ b/src/ccutil/scanutils.cpp @@ -441,7 +441,7 @@ static int tvfscanf(FILE* stream, const char *format, va_list ap) { unsigned length = 0; while (width--) { q = fgetc(stream); - if (isascii(q) && isspace(q) || q <= 0) { + if ((isascii(q) && isspace(q)) || (q <= 0)) { ungetc(q, stream); break; }