Mario: silence some warnings

This commit is contained in:
2021-05-31 14:30:28 +02:00
parent 5d20757d43
commit 808f392119
3 changed files with 15 additions and 5 deletions
+2 -2
View File
@@ -146,9 +146,9 @@ void RectangleRender::updateSizeAndPosition() {
rect.h =
std::round( ( current.getY() + original_size.getY() ) * dimension ) -
rect.y;
if(rect.w < min_size.getX())
if(static_cast<uint64_t>(rect.w) < min_size.getX())
rect.w = min_size.getX();
if(rect.h < min_size.getY())
if(static_cast<uint64_t>(rect.h) < min_size.getY())
rect.h = min_size.getY();
if ( polygon )
polygon->updateCollision( collisionPushX(), collisionPushY(),