diff options
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index da80e9f8f..f70af1c3e 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -300,7 +300,7 @@ unsigned ConfigurationObject::getValue(const std::string &key, { GETLOG(); const Options::const_iterator iter = mOptions.find(key); - return (iter != mOptions.end()) ? static_cast<unsigned>( + return (iter != mOptions.end()) ? CAST_U32( atol(iter->second.c_str())) : deflt; } @@ -441,7 +441,7 @@ int Configuration::getIntValue(const std::string &key) const } else if (type == VariableData::DATA_FLOAT) { - defaultValue = static_cast<int>( + defaultValue = CAST_S32( (static_cast<const FloatData*>(data))->getData()); } } @@ -635,7 +635,7 @@ bool Configuration::getBoolValue(const std::string &key) const } if (type == VariableData::DATA_FLOAT) { - if (static_cast<int>((static_cast<const FloatData*>( + if (CAST_S32((static_cast<const FloatData*>( data))->getData()) != 0) { defaultValue = true; |