mirror of
https://github.com/encounter/SDL.git
synced 2025-12-12 06:45:10 +00:00
Fixed some warnings building for 64-bit Windows
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -830,7 +830,7 @@ SDL_JoystickGUID SDL_JoystickGetGUIDFromString(const char *pchGUID)
|
||||
{
|
||||
SDL_JoystickGUID guid;
|
||||
int maxoutputbytes= sizeof(guid);
|
||||
int len = SDL_strlen( pchGUID );
|
||||
size_t len = SDL_strlen( pchGUID );
|
||||
Uint8 *p;
|
||||
int i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user