src/thread/SDL_thread.c
changeset 7482 249d8ecbbb7d
parent 7393 358696c354a8
child 7484 c6c4f8719af6
     1.1 --- a/src/thread/SDL_thread.c	Sat Jul 20 18:51:49 2013 -0400
     1.2 +++ b/src/thread/SDL_thread.c	Sat Jul 20 19:51:51 2013 -0400
     1.3 @@ -57,8 +57,8 @@
     1.4      }
     1.5  
     1.6      storage = SDL_SYS_GetTLSData();
     1.7 -    if (!storage || id > storage->limit) {
     1.8 -        int i, oldlimit, newlimit;
     1.9 +    if (!storage || (id > storage->limit)) {
    1.10 +        unsigned int i, oldlimit, newlimit;
    1.11  
    1.12          oldlimit = storage ? storage->limit : 0;
    1.13          newlimit = (id + TLS_ALLOC_CHUNKSIZE);