mirror of https://github.com/aseprite/aseprite.git
Eliminated a warning in MSVC about double -> float convertion.
This commit is contained in:
parent
3c49d0a1ad
commit
81114a7f39
|
|
@ -187,7 +187,7 @@ template<> unsigned long Vaca::convert_to(const String& from)
|
|||
|
||||
template<> float Vaca::convert_to(const String& from)
|
||||
{
|
||||
return std::wcstod(from.c_str(), NULL);
|
||||
return static_cast<float>(std::wcstod(from.c_str(), NULL));
|
||||
}
|
||||
|
||||
template<> double Vaca::convert_to(const String& from)
|
||||
|
|
|
|||
Loading…
Reference in New Issue