Fix failing tests

This commit is contained in:
tamasmeszaros 2022-09-14 16:39:18 +02:00
parent 66bc6ecc5c
commit 086fb28299

View File

@ -202,7 +202,7 @@ public:
inline Unit area() const BP2D_NOEXCEPT {
constexpr TCoord<P> Zero{0};
Unit s = width() < Zero || height() < Zero ? Unit(-1) : Unit(1);
return s * libnest2d::abs(width() * height());
return s * libnest2d::abs(Unit(width()) * height());
}
static inline _Box infinite(const P &center = {TCoord<P>(0), TCoord<P>(0)});