diff options
-rw-r--r-- | src/StormCommon.h | 4 |
1 files 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;
}
|