summaryrefslogtreecommitdiffstats
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index e9a8e0f..563d28a 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -292,7 +292,7 @@ int main (int argc, char *argv[])
// call process directory
inst.ProcessDirectory(passed, failed);
- total = passed + failed.size();
+ total = passed + int(failed.size());
if (total == 0)
{
@@ -300,7 +300,7 @@ int main (int argc, char *argv[])
}
else
{
- float percent = passed * 100.0 / total;
+ float percent = passed * 100.0f / total;
fprintf(stderr,"%.0f%% tests passed, %i tests failed out of %i\n",
percent, failed.size(), total);
if (failed.size())
@@ -314,5 +314,5 @@ int main (int argc, char *argv[])
}
}
- return failed.size();
+ return int(failed.size());
}