From 9b84d9d8e0dcb8033cf35e259993bff966d17aa4 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 16 Apr 2020 23:50:30 -0500 Subject: [PATCH] [nostalgia/world] Fix sign conversion --- src/nostalgia/world/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/world/world.cpp b/src/nostalgia/world/world.cpp index 93bdea81..1bb73d08 100644 --- a/src/nostalgia/world/world.cpp +++ b/src/nostalgia/world/world.cpp @@ -37,7 +37,7 @@ void Zone::draw(Context *ctx) { } std::size_t Zone::size() { - return sizeof(Zone) + m_bounds.width * m_bounds.height * sizeof(Tile); + return sizeof(Zone) + static_cast(m_bounds.width * m_bounds.height) * sizeof(Tile); } Tile *Zone::tile(int x, int y) {