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:
parent
db77041d93
commit
19375e4fca
@ -1721,7 +1721,7 @@ static const char *_tok_value_number(const char *s,
|
||||
int is_float = 0;
|
||||
|
||||
*begin = s;
|
||||
while (*s && ((!is_float && *s=='.' && (is_float=1)) || isdigit(*s)))
|
||||
while ((!is_float && (*s == '.') && ((is_float = 1))) || isdigit(*s))
|
||||
s++;
|
||||
*end = s;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user