mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Make intentions explicit with additional parenthesis.
This commit is contained in:
parent
84d9142f58
commit
27a97dffc1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124175
@ -1004,7 +1004,7 @@ parsefloat(FILE *fp, char *buf, char *end)
|
||||
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 @@ parsefloat(FILE *fp, char *buf, char *end)
|
||||
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
|
||||
|
@ -816,7 +816,7 @@ parsefloat(FILE *fp, wchar_t *buf, wchar_t *end)
|
||||
goto reswitch;
|
||||
}
|
||||
case S_DIGITS:
|
||||
if (ishex && iswxdigit(c) || iswdigit(c))
|
||||
if ((ishex && iswxdigit(c)) || iswdigit(c))
|
||||
gotmantdig = 1;
|
||||
else {
|
||||
state = S_FRAC;
|
||||
@ -827,13 +827,13 @@ parsefloat(FILE *fp, wchar_t *buf, wchar_t *end)
|
||||
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 && iswxdigit(c) || iswdigit(c)) {
|
||||
} else if ((ishex && iswxdigit(c)) || iswdigit(c)) {
|
||||
commit = p;
|
||||
gotmantdig = 1;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user