summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-04 11:19:57 +0200
committermadmaxoft <github@xoft.cz>2014-04-04 11:19:57 +0200
commit3590f97e00e570df7a18d953212f33d947f3896c (patch)
treeb90ff1a446bd1dc57b91a9277f603c5b235f7950 /src/StringUtils.cpp
parentFixed CreateHexDump's signedness. (diff)
downloadcuberite-3590f97e00e570df7a18d953212f33d947f3896c.tar
cuberite-3590f97e00e570df7a18d953212f33d947f3896c.tar.gz
cuberite-3590f97e00e570df7a18d953212f33d947f3896c.tar.bz2
cuberite-3590f97e00e570df7a18d953212f33d947f3896c.tar.lz
cuberite-3590f97e00e570df7a18d953212f33d947f3896c.tar.xz
cuberite-3590f97e00e570df7a18d953212f33d947f3896c.tar.zst
cuberite-3590f97e00e570df7a18d953212f33d947f3896c.zip
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r--src/StringUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp
index a69d8750f..33b04505f 100644
--- a/src/StringUtils.cpp
+++ b/src/StringUtils.cpp
@@ -548,9 +548,9 @@ AString & CreateHexDump(AString & a_Out, const void * a_Data, size_t a_Size, siz
}
#ifdef _MSC_VER
// MSVC provides a "secure" version of sprintf()
- int Count = sprintf_s(line, sizeof(line), "%08x:", i);
+ int Count = sprintf_s(line, sizeof(line), "%08x:", (unsigned)i);
#else
- int Count = sprintf(line, "%08x:", i);
+ int Count = sprintf(line, "%08x:", (unsigned)i);
#endif
// Remove the terminating NULL / leftover garbage in line, after the sprintf-ed value
memset(line + Count, 32, sizeof(line) - Count);