summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-08-13 13:33:37 +0100
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-08-14 07:55:24 -0700
commitfd0467c56849f0e117418a3e23f6b85beab6a4f9 (patch)
tree7ea41f24affe5d25359abb9db5b9093569a76d30 /src/pugixml.cpp
parentf738675f1d857917e54751961da28d7e5aaaf440 (diff)
Minor get_integer_base optimization
Remove an extra branch.
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 07f3a33..2ad2f15 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -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)