diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-13 15:25:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-13 15:25:11 (GMT) |
commit | 809b32fe59ee9923eebbcfc373d9eaab158083e9 (patch) | |
tree | cbb36213252d97bf3f7d21b301b4f65aa7a5342c /Source/ctest.cxx | |
parent | 83a0759e479ee0718296a1bb8f6fb26e1b13500a (diff) | |
download | CMake-809b32fe59ee9923eebbcfc373d9eaab158083e9.zip CMake-809b32fe59ee9923eebbcfc373d9eaab158083e9.tar.gz CMake-809b32fe59ee9923eebbcfc373d9eaab158083e9.tar.bz2 |
ENH: remove several compiler warnings
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r-- | Source/ctest.cxx | 6 |
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()); } |