fixed the compilation warnings in CppUnitLite

release/4.3a0
Kai Ni 2010-01-06 18:59:14 +00:00
parent f77da96caf
commit 8fb2c00fc1
2 changed files with 3 additions and 3 deletions

View File

@ -27,8 +27,8 @@ Failure::Failure (const SimpleString& theTestName,
fileName (theFileName),
lineNumber (theLineNumber)
{
char *part1 = "expected ";
char *part3 = " but was: ";
const char *part1 = "expected ";
const char *part3 = " but was: ";
char *stage = new char [strlen (part1)
+ expected.size ()

View File

@ -34,7 +34,7 @@ void TestResult::addFailure (const Failure& failure)
void TestResult::testsEnded ()
{
if (failureCount > 0)
fprintf (stdout, "There were %ld failures\n", failureCount);
fprintf (stdout, "There were %d failures\n", failureCount);
else
fprintf (stdout, "There were no test failures\n");
}