Fixed some warnings building for 64-bit Windows

This commit is contained in:
Sam Lantinga 2013-10-21 01:16:16 -07:00
parent 165ad7a5e6
commit 20e65317fa
4 changed files with 6 additions and 5 deletions

View file

@ -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 );