Commit 41d26db6 authored by Leander Schulten's avatar Leander Schulten
Browse files

Have to use static_cast

parent 9600a5f1
...@@ -106,15 +106,15 @@ namespace Modules { ...@@ -106,15 +106,15 @@ namespace Modules {
void save(SaveObject &s)const override{ void save(SaveObject &s)const override{
if(std::is_same<Type_t,int>::value){ if(std::is_same<Type_t,int>::value){
s.saveInt(name.c_str(),reinterpret_cast<int>(value)); s.saveInt(name.c_str(),static_cast<int>(value));
}else if(std::is_same<Type_t,long>::value){ }else if(std::is_same<Type_t,long>::value){
s.saveLong(name.c_str(),reinterpret_cast<long>(value)); s.saveLong(name.c_str(),static_cast<long>(value));
}else if(std::is_same<Type_t,float>::value){ }else if(std::is_same<Type_t,float>::value){
s.saveFloat(name.c_str(),reinterpret_cast<float>(value)); s.saveFloat(name.c_str(),static_cast<float>(value));
}else if(std::is_same<Type_t,double>::value){ }else if(std::is_same<Type_t,double>::value){
s.saveDouble(name.c_str(),reinterpret_cast<double>(value)); s.saveDouble(name.c_str(),static_cast<double>(value));
}else { }else {
s.saveBool(name.c_str(),reinterpret_cast<bool>(value)); s.saveBool(name.c_str(),static_cast<bool>(value));
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment