Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed size_t warnings on 64-bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 22, 2011
1 parent 09caf23 commit 238c238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/events/SDL_touch.c
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/stdlib/SDL_string.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit 238c238

Please sign in to comment.