test/checkkeys.c
changeset 5879 cdb371a9b4a1
parent 5535 96594ac5fd1a
child 6392 fa7eb111f994
     1.1 --- a/test/checkkeys.c	Fri Sep 09 02:43:04 2011 -0400
     1.2 +++ b/test/checkkeys.c	Fri Sep 09 04:17:47 2011 -0400
     1.3 @@ -39,8 +39,8 @@
     1.4      len = SDL_vsnprintf(*text, *maxlen, fmt, ap);
     1.5      if (len > 0) {
     1.6          *text += len;
     1.7 -        if (len < *maxlen) {
     1.8 -            *maxlen -= len;
     1.9 +        if ( ((size_t) len) < *maxlen ) {
    1.10 +            *maxlen -= (size_t) len;
    1.11          } else {
    1.12              *maxlen = 0;
    1.13          }