changeset 5076:8bf5781fc582

Fixed size_t warnings on 64-bit build
author Sam Lantinga <slouken@libsdl.org>
date Sat, 22 Jan 2011 15:58:21 -0800
parents 906d7293bb47
children 37b582b8bb07 de59e0218aa2
files src/events/SDL_touch.c src/stdlib/SDL_string.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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");
--- 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)
     {