Fixed some warnings building for 64-bit Windows
This commit is contained in:
parent
165ad7a5e6
commit
20e65317fa
4 changed files with 6 additions and 5 deletions
|
@ -758,7 +758,7 @@ SDL_GameControllerLoadHints()
|
|||
{
|
||||
const char *hint = SDL_GetHint(SDL_HINT_GAMECONTROLLERCONFIG);
|
||||
if ( hint && hint[0] ) {
|
||||
int nchHints = SDL_strlen( hint );
|
||||
size_t nchHints = SDL_strlen( hint );
|
||||
char *pUserMappings = SDL_malloc( nchHints + 1 );
|
||||
char *pTempMappings = pUserMappings;
|
||||
SDL_memcpy( pUserMappings, hint, nchHints );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue