Amalgamate the different architecture problems with printf...

This commit is contained in:
Pavel Krajcevski 2013-01-28 17:49:57 -05:00
parent 8c666bcd3f
commit 42e4e8d4aa

View File

@ -105,9 +105,9 @@ void BlockStat::ToString(CHAR *buf, int bufSz) const {
case BlockStat::eType_Int:
#ifdef _MSC_VER
_sntprintf_s(buf, bufSz, _TRUNCATE, "%s,%lu", m_StatName, m_IntStat);
_sntprintf_s(buf, bufSz, _TRUNCATE, "%s,%lu", m_StatName, (unsigned long)m_IntStat);
#else
snprintf(buf, bufSz, "%s,%lu", m_StatName, m_IntStat);
snprintf(buf, bufSz, "%s,%lu", m_StatName, (unsigned long)m_IntStat);
#endif
break;