From fd0467c56849f0e117418a3e23f6b85beab6a4f9 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 13 Aug 2015 13:33:37 +0100 Subject: Minor get_integer_base optimization Remove an extra branch. --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3