summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/xmlfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/xmlfile.cpp')
-rw-r--r--src/lib/util/xmlfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/xmlfile.cpp b/src/lib/util/xmlfile.cpp
index d96c5913728..1014a7b245c 100644
--- a/src/lib/util/xmlfile.cpp
+++ b/src/lib/util/xmlfile.cpp
@@ -598,7 +598,7 @@ int data_node::get_attribute_int(const char *attribute, int defvalue) const
stream >> std::hex >> uvalue;
result = int(uvalue);
}
- else if (string[0] == '0' && string[1] == 'x')
+ else if ((string[0] == '0') && ((string[1] == 'x') || (string[1] == 'X')))
{
stream.str(&string[2]);
unsigned uvalue;