From 42e4e8d4aa27ddadf2541c1f7960c46136a9d506 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Mon, 28 Jan 2013 17:49:57 -0500 Subject: [PATCH] Amalgamate the different architecture problems with printf... --- Core/src/BlockStats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/BlockStats.cpp b/Core/src/BlockStats.cpp index 9ff3f7c..1d3a872 100644 --- a/Core/src/BlockStats.cpp +++ b/Core/src/BlockStats.cpp @@ -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;