Fix failing tests
This commit is contained in:
parent
66bc6ecc5c
commit
086fb28299
@ -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 ¢er = {TCoord<P>(0), TCoord<P>(0)});
|
||||
|
Loading…
Reference in New Issue
Block a user