Fixed a compiler warning on Visual Studio.
This commit is contained in:
parent
a65793b807
commit
484c18aa15
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue