test/testautomation_rwops.c
changeset 11416 7e7d8a125d6a
parent 10782 1de6d4633ee6
child 12968 0e3948762c96
     1.1 --- a/test/testautomation_rwops.c	Tue Aug 29 09:02:04 2017 -0700
     1.2 +++ b/test/testautomation_rwops.c	Tue Aug 29 15:52:49 2017 -0400
     1.3 @@ -32,9 +32,9 @@
     1.4  void
     1.5  RWopsSetUp(void *arg)
     1.6  {
     1.7 -    int fileLen;
     1.8 +    size_t fileLen;
     1.9      FILE *handle;
    1.10 -    int writtenLen;
    1.11 +    size_t writtenLen;
    1.12      int result;
    1.13  
    1.14      /* Clean up from previous runs (if any); ignore errors */
    1.15 @@ -49,8 +49,8 @@
    1.16  
    1.17      /* Write some known text into it */
    1.18      fileLen = SDL_strlen(RWopsHelloWorldTestString);
    1.19 -    writtenLen = (int)fwrite(RWopsHelloWorldTestString, 1, fileLen, handle);
    1.20 -    SDLTest_AssertCheck(fileLen == writtenLen, "Verify number of written bytes, expected %i, got %i", fileLen, writtenLen);
    1.21 +    writtenLen = fwrite(RWopsHelloWorldTestString, 1, fileLen, handle);
    1.22 +    SDLTest_AssertCheck(fileLen == writtenLen, "Verify number of written bytes, expected %i, got %i", (int) fileLen, (int) writtenLen);
    1.23      result = fclose(handle);
    1.24      SDLTest_AssertCheck(result == 0, "Verify result from fclose, expected 0, got %i", result);
    1.25  
    1.26 @@ -61,8 +61,8 @@
    1.27  
    1.28      /* Write alphabet text into it */
    1.29      fileLen = SDL_strlen(RWopsAlphabetString);
    1.30 -    writtenLen = (int)fwrite(RWopsAlphabetString, 1, fileLen, handle);
    1.31 -    SDLTest_AssertCheck(fileLen == writtenLen, "Verify number of written bytes, expected %i, got %i", fileLen, writtenLen);
    1.32 +    writtenLen = fwrite(RWopsAlphabetString, 1, fileLen, handle);
    1.33 +    SDLTest_AssertCheck(fileLen == writtenLen, "Verify number of written bytes, expected %i, got %i", (int) fileLen, (int) writtenLen);
    1.34      result = fclose(handle);
    1.35      SDLTest_AssertCheck(result == 0, "Verify result from fclose, expected 0, got %i", result);
    1.36