summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfscanf.c
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2004-01-06 18:32:24 +0000
committernectar <nectar@FreeBSD.org>2004-01-06 18:32:24 +0000
commita455b2e93e7dadc05f627dc75887505b3fd011e4 (patch)
tree2d82a6fb48b89408ba584d81683a17b32993d497 /lib/libc/stdio/vfscanf.c
parentc281d0e2eafa39c917ef047ce514a5594c54b94f (diff)
downloadFreeBSD-src-a455b2e93e7dadc05f627dc75887505b3fd011e4.zip
FreeBSD-src-a455b2e93e7dadc05f627dc75887505b3fd011e4.tar.gz
Make intentions explicit with additional parenthesis.
Diffstat (limited to 'lib/libc/stdio/vfscanf.c')
-rw-r--r--lib/libc/stdio/vfscanf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c
index 41bb822..a6c8d0e 100644
--- a/lib/libc/stdio/vfscanf.c
+++ b/lib/libc/stdio/vfscanf.c
@@ -1004,7 +1004,7 @@ reswitch:
goto reswitch;
}
case S_DIGITS:
- if (ishex && isxdigit(c) || isdigit(c))
+ if ((ishex && isxdigit(c)) || isdigit(c))
gotmantdig = 1;
else {
state = S_FRAC;
@@ -1015,13 +1015,13 @@ reswitch:
commit = p;
break;
case S_FRAC:
- if ((c == 'E' || c == 'e') && !ishex ||
- (c == 'P' || c == 'p') && ishex) {
+ if (((c == 'E' || c == 'e') && !ishex) ||
+ ((c == 'P' || c == 'p') && ishex)) {
if (!gotmantdig)
goto parsedone;
else
state = S_EXP;
- } else if (ishex && isxdigit(c) || isdigit(c)) {
+ } else if ((ishex && isxdigit(c)) || isdigit(c)) {
commit = p;
gotmantdig = 1;
} else
OpenPOWER on IntegriCloud