summaryrefslogtreecommitdiff
path: root/src/utils/xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/xml')
-rw-r--r--src/utils/xml/libxml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/xml/libxml.cpp b/src/utils/xml/libxml.cpp
index 251f994d5..46c3fbb76 100644
--- a/src/utils/xml/libxml.cpp
+++ b/src/utils/xml/libxml.cpp
@@ -214,7 +214,7 @@ namespace XML
xmlChar *const prop = XmlGetProp(node, name);
if (prop != nullptr)
{
- ret = atof(reinterpret_cast<char*>(prop));
+ ret = static_cast<float>(atof(reinterpret_cast<char*>(prop)));
xmlFree(prop);
}