aboutsummaryrefslogtreecommitdiff
path: root/src/engine/data/bounds.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-07 19:08:08 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:55 +0200
commit12fffa7df0685ef6d23ffe888a06695ae490df81 (patch)
treeffdc24e482b7d4610bdec6f1ebb8ccc0800c5ee5 /src/engine/data/bounds.cpp
parenta9a4381398098107d1b359a19338e91651605de8 (diff)
refactor: make vector2 data int32_t
Diffstat (limited to 'src/engine/data/bounds.cpp')
-rw-r--r--src/engine/data/bounds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/data/bounds.cpp b/src/engine/data/bounds.cpp
index fbd7ec4..acd98af 100644
--- a/src/engine/data/bounds.cpp
+++ b/src/engine/data/bounds.cpp
@@ -27,12 +27,12 @@ void Bounds::set_height(uint32_t height) noexcept
CoordsValidation Bounds::validate_coords(const Vector2 &coords) const noexcept
{
- if (coords.get_x() >= _width)
+ if (static_cast<uint32_t>(coords.get_x()) >= _width)
{
return CoordsValidation::X_HIGH;
}
- if (coords.get_y() >= _height)
+ if (static_cast<uint32_t>(coords.get_y()) >= _height)
{
return CoordsValidation::Y_HIGH;
}