From d49182075974a3353f77fb6b3059ef8d09c604b3 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 Feb 2023 03:51:08 +0200 Subject: [PATCH] Compiler warning --- Core/Video/Display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Video/Display.cpp b/Core/Video/Display.cpp index a55f111..014126a 100644 --- a/Core/Video/Display.cpp +++ b/Core/Video/Display.cpp @@ -261,7 +261,7 @@ namespace Video uint32_t FontHeaderSize = this->CurrentFont->GetInfo().PSF2Font->Header->headersize; uint32_t FontCharSize = this->CurrentFont->GetInfo().PSF2Font->Header->charsize; uint32_t FontLength = this->CurrentFont->GetInfo().PSF2Font->Header->length; - char *FontPtr = FontAddress + FontHeaderSize + (Char > 0 && Char < FontLength ? Char : 0) * FontCharSize; + char *FontPtr = FontAddress + FontHeaderSize + (Char > 0 && (uint32_t)Char < FontLength ? Char : 0) * FontCharSize; uint32_t FontHdrWidth = this->CurrentFont->GetInfo().PSF2Font->Header->width; uint32_t FontHdrHeight = this->CurrentFont->GetInfo().PSF2Font->Header->height;