Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed a compiler warning on Visual Studio.

  • Loading branch information
icculus committed Sep 9, 2011
1 parent 63e06b5 commit ac865ca174d105b8a83af687233bb0d0759f6f03
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/checkkeys.c
@@ -39,8 +39,8 @@ print_string(char **text, size_t *maxlen, const char *fmt, ...)
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;
}

0 comments on commit ac865ca

Please sign in to comment.