1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: assignment into ()

Put is_float=1 into () - so the intention is obvious.
Remove uneeded extra check for for  *s != 0,
since it's already checked for either digit or '.'.
This commit is contained in:
Zdenek Kabelac 2014-08-28 13:53:36 +02:00
parent db77041d93
commit 19375e4fca

View File

@ -1721,7 +1721,7 @@ static const char *_tok_value_number(const char *s,
int is_float = 0; int is_float = 0;
*begin = s; *begin = s;
while (*s && ((!is_float && *s=='.' && (is_float=1)) || isdigit(*s))) while ((!is_float && (*s == '.') && ((is_float = 1))) || isdigit(*s))
s++; s++;
*end = s; *end = s;