From 470115fd4fe182b7e7a8e59f9a05aa46f3ab177e Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Thu, 2 Feb 2023 16:11:51 -0800 Subject: [PATCH] =?UTF-8?q?TextureDecoder:=20Fix=20warning:=20array=20subs?= =?UTF-8?q?cript=20has=20type=20=E2=80=98char=E2=80=99=20[-Wchar-subscript?= =?UTF-8?q?s]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Core/VideoCommon/TextureDecoder_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(ch)]; const unsigned char* ptr = sfont_raw[nchar]; // each char is up to 9x10