mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool
This commit is contained in:
@@ -650,10 +650,10 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
|
||||
goto done;
|
||||
done = true;
|
||||
continue;
|
||||
} else if (!(options & ISC_LEXOPT_CNUMBER) ||
|
||||
} else if ((options & ISC_LEXOPT_CNUMBER) == 0 ||
|
||||
((c != 'x' && c != 'X') ||
|
||||
(curr != &lex->data[1]) ||
|
||||
(lex->data[0] != '0'))) {
|
||||
(curr != &lex->data[1]) ||
|
||||
(lex->data[0] != '0'))) {
|
||||
/* Above test supports hex numbers */
|
||||
state = lexstate_string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user