1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Avoided a Visual Studio compiler warning in Rectangle

This commit is contained in:
jules 2015-12-22 11:43:28 +00:00
parent 6f092d602d
commit 9906788e9b

View file

@ -914,8 +914,8 @@ private:
Point<ValueType> pos;
ValueType w, h;
static int parseIntAfterSpace (StringRef s) noexcept
{ return s.text.findEndOfWhitespace().getIntValue32(); }
static ValueType parseIntAfterSpace (StringRef s) noexcept
{ return static_cast<ValueType> (s.text.findEndOfWhitespace().getIntValue32()); }
void copyWithRounding (Rectangle<int>& result) const noexcept { result = getSmallestIntegerContainer(); }
void copyWithRounding (Rectangle<float>& result) const noexcept { result = toFloat(); }