Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Common/IntToString.cpp')
-rwxr-xr-xCommon/IntToString.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Common/IntToString.cpp b/Common/IntToString.cpp
index d841635d..7d81d966 100755
--- a/Common/IntToString.cpp
+++ b/Common/IntToString.cpp
@@ -16,7 +16,7 @@ void ConvertUInt64ToString(UInt64 value, char *s, UInt32 base)
do
{
int delta = (int)(value % base);
- temp[pos++] = (delta < 10) ? ('0' + delta) : ('a' + (delta - 10));
+ temp[pos++] = (char)((delta < 10) ? ('0' + delta) : ('a' + (delta - 10)));
value /= base;
}
while (value != 0);
@@ -32,7 +32,7 @@ void ConvertUInt64ToString(UInt64 value, wchar_t *s)
int pos = 0;
do
{
- temp[pos++] = L'0' + (int)(value % 10);
+ temp[pos++] = (wchar_t)(L'0' + (int)(value % 10));
value /= 10;
}
while (value != 0);