Skip to content

Commit 9c07993

Browse files
committed
Add parenthesis in boolean expression
This fixes a compiler warning: scanutils.cpp:444:32: warning: '&&' within '||' [-Wlogical-op-parentheses] Signed-off-by: Stefan Weil <[email protected]>
1 parent 0f973e1 commit 9c07993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ccutil/scanutils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ static int tvfscanf(FILE* stream, const char *format, va_list ap) {
441441
unsigned length = 0;
442442
while (width--) {
443443
q = fgetc(stream);
444-
if (isascii(q) && isspace(q) || q <= 0) {
444+
if ((isascii(q) && isspace(q)) || (q <= 0)) {
445445
ungetc(q, stream);
446446
break;
447447
}

0 commit comments

Comments
 (0)