# HG changeset patch # User Sam Lantinga # Date 1295740701 28800 # Node ID 8bf5781fc5828f61cf7a92a43ceef93e29eac0f0 # Parent 906d7293bb47c5facc53a07abc158dc2d515b960 Fixed size_t warnings on 64-bit build diff -r 906d7293bb47 -r 8bf5781fc582 src/events/SDL_touch.c --- a/src/events/SDL_touch.c Sat Jan 22 00:33:37 2011 -0800 +++ b/src/events/SDL_touch.c Sat Jan 22 15:58:21 2011 -0800 @@ -100,7 +100,8 @@ SDL_AddTouch(const SDL_Touch * touch, char *name) { SDL_Touch **touchPads; - int index,length; + int index; + size_t length; if (SDL_GetTouchIndexId(touch->id) != -1) { SDL_SetError("Touch ID already in use"); diff -r 906d7293bb47 -r 8bf5781fc582 src/stdlib/SDL_string.c --- a/src/stdlib/SDL_string.c Sat Jan 22 00:33:37 2011 -0800 +++ b/src/stdlib/SDL_string.c Sat Jan 22 15:58:21 2011 -0800 @@ -408,7 +408,7 @@ { size_t src_bytes = SDL_strlen(src); size_t bytes = SDL_min(src_bytes, dst_bytes - 1); - int i = 0; + size_t i = 0; char trailing_bytes = 0; if (bytes) {