diff --git a/src/Math/Geometry/Rectangle.h b/src/Math/Geometry/Rectangle.h index 41c3a4efc..21f3bb331 100644 --- a/src/Math/Geometry/Rectangle.h +++ b/src/Math/Geometry/Rectangle.h @@ -163,7 +163,7 @@ template struct ConfigurationValue /** @brief Reads elements separated with whitespace */ static Magnum::Math::Geometry::Rectangle fromString(const std::string& stringValue, const ConfigurationValueFlags flags) { const auto vec = ConfigurationValue>::fromString(stringValue, flags); - return reinterpret_cast&>(vec); + return {{vec[0], vec[1]}, {vec[2], vec[3]}}; } };