Fixed a compiler warning on Visual Studio.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 09 Sep 2011 04:17:47 -0400
changeset 5879 cdb371a9b4a1
parent 5878 bc68122afbed
child 5880 db03ff7a7398
Fixed a compiler warning on Visual Studio.
test/checkkeys.c
--- 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;
         }