Commit 484c18aa authored by Ryan C. Gordon's avatar Ryan C. Gordon

Fixed a compiler warning on Visual Studio.

parent a65793b8
...@@ -39,8 +39,8 @@ print_string(char **text, size_t *maxlen, const char *fmt, ...) ...@@ -39,8 +39,8 @@ print_string(char **text, size_t *maxlen, const char *fmt, ...)
len = SDL_vsnprintf(*text, *maxlen, fmt, ap); len = SDL_vsnprintf(*text, *maxlen, fmt, ap);
if (len > 0) { if (len > 0) {
*text += len; *text += len;
if (len < *maxlen) { if ( ((size_t) len) < *maxlen ) {
*maxlen -= len; *maxlen -= (size_t) len;
} else { } else {
*maxlen = 0; *maxlen = 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment