- msgstr.Printf(_T("matches %d times (expected %d)"), nRepl, m_count);
- msg = msgstr.mb_str();
- CPPUNIT_ASSERT_MESSAGE(msg, nRepl == m_count);
+ msgstr.Printf(_T("matches %d times (expected %d)"), (int)nRepl, (int)m_count);
+ CPPUNIT_ASSERT_MESSAGE((const char*)msgstr.mb_str(), nRepl == m_count);