Sfoglia il codice sorgente

ERR: Fix for fprintf format warning.

Brad King 23 anni fa
parent
commit
3d7a869b39
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Source/ctest.cxx

+ 1 - 1
Source/ctest.cxx

@@ -320,7 +320,7 @@ int main (int argc, char *argv[])
 
 
     float percent = float(passed.size()) * 100.0f / total;
     float percent = float(passed.size()) * 100.0f / total;
     fprintf(stderr,"\n%.0f%% tests passed, %i tests failed out of %i\n",
     fprintf(stderr,"\n%.0f%% tests passed, %i tests failed out of %i\n",
-            percent, failed.size(), total);
+            percent, int(failed.size()), total);
 
 
     if (failed.size()) 
     if (failed.size()) 
       {
       {