Minor get_integer_base optimization

Remove an extra branch.
This commit is contained in:
Arseny Kapoulkine 2015-08-13 13:33:37 +01:00
parent f738675f1d
commit fd0467c568

View file

@ -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)