Explorar el Código

Fixed warning C4245: 'return': conversion from 'int' to 'Uint64', signed/unsigned mismatch

Sam Lantinga hace 2 años
padre
commit
4514aabb41
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/test/SDL_test_harness.c

+ 4 - 4
src/test/SDL_test_harness.c

@@ -120,22 +120,22 @@ static Uint64 SDLTest_GenerateExecKey(const char *runSeed, const char *suiteName
 
     if (!runSeed || runSeed[0] == '\0') {
         SDLTest_LogError("Invalid runSeed string.");
-        return -1;
+        return 0;
     }
 
     if (!suiteName || suiteName[0] == '\0') {
         SDLTest_LogError("Invalid suiteName string.");
-        return -1;
+        return 0;
     }
 
     if (!testName || testName[0] == '\0') {
         SDLTest_LogError("Invalid testName string.");
-        return -1;
+        return 0;
     }
 
     if (iteration <= 0) {
         SDLTest_LogError("Invalid iteration count.");
-        return -1;
+        return 0;
     }
 
     /* Convert iteration number into a string */