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