test/testautomation_keyboard.c
changeset 7268 b399d0441810
parent 7191 75360622e65f
child 10517 563edd87e287
     1.1 --- a/test/testautomation_keyboard.c	Mon Jun 03 07:28:55 2013 -0700
     1.2 +++ b/test/testautomation_keyboard.c	Mon Jun 03 19:24:18 2013 -0700
     1.3 @@ -25,13 +25,13 @@
     1.4     Uint8 *state;
     1.5  
     1.6     /* Case where numkeys pointer is NULL */
     1.7 -   state = SDL_GetKeyboardState(NULL);
     1.8 +   state = (Uint8 *)SDL_GetKeyboardState(NULL);
     1.9     SDLTest_AssertPass("Call to SDL_GetKeyboardState(NULL)");
    1.10     SDLTest_AssertCheck(state != NULL, "Validate that return value from SDL_GetKeyboardState is not NULL");
    1.11  
    1.12     /* Case where numkeys pointer is not NULL */
    1.13     numkeys = -1;
    1.14 -   state = SDL_GetKeyboardState(&numkeys);
    1.15 +   state = (Uint8 *)SDL_GetKeyboardState(&numkeys);
    1.16     SDLTest_AssertPass("Call to SDL_GetKeyboardState(&numkeys)");
    1.17     SDLTest_AssertCheck(state != NULL, "Validate that return value from SDL_GetKeyboardState is not NULL");
    1.18     SDLTest_AssertCheck(numkeys >= 0, "Validate that value of numkeys is >= 0, got: %i", numkeys);