Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed a compiler warning on Visual Studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 9, 2011
1 parent 63e06b5 commit ac865ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/checkkeys.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit ac865ca

Please sign in to comment.