mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-01 01:13:40 +00:00
Eliminated a warning in MSVC about double -> float convertion.
This commit is contained in:
parent
3c49d0a1ad
commit
81114a7f39
2
third_party/vaca/src/String.cpp
vendored
2
third_party/vaca/src/String.cpp
vendored
@ -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…
x
Reference in New Issue
Block a user