summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureDecoder_Common.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2023-02-02 16:11:51 -0800
committerPokechu22 <Pokechu022@gmail.com>2023-02-09 16:23:02 -0800
commit470115fd4fe182b7e7a8e59f9a05aa46f3ab177e (patch)
tree6d8c28363326d36706cac3d20dd3ad1307f3435e /Source/Core/VideoCommon/TextureDecoder_Common.cpp
parentdebed35c10ed94811107bdeb6f22177de6bdd86c (diff)
TextureDecoder: Fix warning: array subscript has type ‘char’ [-Wchar-subscripts]
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder_Common.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureDecoder_Common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureDecoder_Common.cpp b/Source/Core/VideoCommon/TextureDecoder_Common.cpp
index 30121aeb7b..01af14a649 100644
--- a/Source/Core/VideoCommon/TextureDecoder_Common.cpp
+++ b/Source/Core/VideoCommon/TextureDecoder_Common.cpp
@@ -271,7 +271,7 @@ static void TexDecoder_DrawOverlay(u8* dst, int width, int height, TextureFormat
for (char ch : fmt_str)
{
int xcnt = 0;
- int nchar = sfont_map[ch];
+ int nchar = sfont_map[static_cast<u8>(ch)];
const unsigned char* ptr = sfont_raw[nchar]; // each char is up to 9x10