Detect and fix printf signedness errors. Fixes #1086, #1087.

This was SVN commit r10846.
This commit is contained in:
Ykkrosh
2012-01-01 16:43:10 +00:00
parent cc405939c2
commit 0ec4242962
21 changed files with 51 additions and 41 deletions
@@ -161,7 +161,7 @@ void CDebugSerializer::PutRaw(const char* name, const u8* data, size_t len)
char buf[4];
for (size_t i = 0; i < len; ++i)
{
sprintf_s(buf, ARRAY_SIZE(buf), " %02x", data[i]);
sprintf_s(buf, ARRAY_SIZE(buf), " %02x", (unsigned int)data[i]);
m_Stream << buf;
}