diff options
author | Ladislav Zezula <zezula@volny.cz> | 2020-08-31 14:01:38 +0200 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2020-08-31 14:01:38 +0200 |
commit | 29fcb13cbaa15097c83273d45a8fb7179390770b (patch) | |
tree | b515fc6a8ee5468a6e5bf6ec197f180bc4a95182 /src | |
parent | cbb7ca874a53bc42cc7a09384ff4819e6b81b29c (diff) |
Fixed type cast
Diffstat (limited to 'src')
-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;
}
|