From 8b976279e59b148efe550e4d2a12fc83056cc116 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 26 Jun 2021 02:29:57 -0500 Subject: [PATCH] [nostalgia/core/userland] Fix automatic type conversion warnings --- src/nostalgia/core/userland/gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/core/userland/gfx.cpp b/src/nostalgia/core/userland/gfx.cpp index e432257f1..dc81bb3cb 100644 --- a/src/nostalgia/core/userland/gfx.cpp +++ b/src/nostalgia/core/userland/gfx.cpp @@ -43,7 +43,7 @@ ox::Error loadBgTileSheet(Context *ctx, const unsigned bytesPerTile = tilesheet.bpp == 8 ? 64 : 32; const auto tiles = tilesheet.pixels.size() / bytesPerTile; constexpr int width = 8; - const int height = 8 * tiles; + const int height = 8 * static_cast(tiles); ox::Vector pixels; if (bytesPerTile == 64) { // 8 BPP pixels.resize(tilesheet.pixels.size()); @@ -62,7 +62,7 @@ ox::Error loadBgTileSheet(Context *ctx, void puts(Context *ctx, int column, int row, const char *str) noexcept { for (int i = 0; str[i]; ++i) { - setTile(ctx, 0, column + i, row, static_cast(charMap[static_cast(str[i])])); + setTile(ctx, 0, column + i, row, static_cast(charMap[static_cast(str[i])])); } }