summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 900a22563..6755e0a4f 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -254,7 +254,7 @@ float Configuration::getFloatValue(const std::string &key) const
}
else
{
- defaultValue = atof(iter->second.c_str());
+ defaultValue = static_cast<float>(atof(iter->second.c_str()));
}
return defaultValue;
}