Serious-Engine icon indicating copy to clipboard operation
Serious-Engine copied to clipboard

initialization of Uint8 in SDLInput.cpp

Open interkosmos opened this issue 7 years ago • 0 comments

Compiling Sources/Engine/Base/SDL/SDLInput.cpp failes with:

/tmp/Serious-Engine-master/Sources/Engine/Base/SDL/SDLInput.cpp:727:12: error: cannot initialize a variable of type 'Uint8 *' (aka 'unsigned char *') with an rvalue of type 'const Uint8 *' (aka 'const unsigned char *')
    Uint8 *keystate = SDL_GetKeyboardState(NULL);

The declaration must be changed to:

    const Uint8 *keystate = SDL_GetKeyboardState(NULL);

interkosmos avatar Aug 05 '17 20:08 interkosmos