Skip to content

Commit

Permalink
Add parenthesis in boolean expression
Browse files Browse the repository at this point in the history
This fixes a compiler warning:

    scanutils.cpp:444:32: warning:
        '&&' within '||' [-Wlogical-op-parentheses]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Oct 22, 2018
1 parent 0f973e1 commit 9c07993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ccutil/scanutils.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9c07993

Please sign in to comment.