Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed size_t warnings on 64-bit build

  • Loading branch information
slouken committed Jan 22, 2011
1 parent 09caf23 commit 238c238141ae8fd7f9fc971506785a71db85be33
Showing with 3 additions and 2 deletions.
  1. +2 −1 src/events/SDL_touch.c
  2. +1 −1 src/stdlib/SDL_string.c
@@ -100,7 +100,8 @@ int
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");
@@ -408,7 +408,7 @@ size_t SDL_utf8strlcpy(char *dst, const char *src, size_t dst_bytes)
{
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)
{

0 comments on commit 238c238

Please sign in to comment.