From 29fcb13cbaa15097c83273d45a8fb7179390770b Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Mon, 31 Aug 2020 14:01:38 +0200 Subject: Fixed type cast --- src/StormCommon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StormCommon.h b/src/StormCommon.h index f622e02..95b3320 100644 --- a/src/StormCommon.h +++ b/src/StormCommon.h @@ -141,13 +141,13 @@ XCHAR * IntToString(XCHAR * szBuffer, size_t cchMaxChars, XINT nValue, size_t nD size_t nLength = 0; // Always put the first digit - szNumberRev[nLength++] = (nValue % 10) + '0'; + szNumberRev[nLength++] = (XCHAR)(nValue % 10) + '0'; nValue /= 10; // Continue as long as we have non-zero while(nValue != 0) { - szNumberRev[nLength++] = (nValue % 10) + '0'; + szNumberRev[nLength++] = (XCHAR)(nValue % 10) + '0'; nValue /= 10; } -- cgit v1.2.3