Minor get_integer_base optimization
Remove an extra branch.
This commit is contained in:
parent
f738675f1d
commit
fd0467c568
1 changed files with 1 additions and 1 deletions
|
@ -4448,7 +4448,7 @@ PUGI__NS_BEGIN
|
|||
if (*s == '-')
|
||||
s++;
|
||||
|
||||
return (s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) ? 16 : 10;
|
||||
return (s[0] == '0' && (s[1] | ' ') == 'x') ? 16 : 10;
|
||||
}
|
||||
|
||||
PUGI__FN int get_value_int(const char_t* value)
|
||||
|
|
Loading…
Add table
Reference in a new issue