mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r19158) -Fix (r19149): MSVC 64 bits compile warning
This commit is contained in:
parent
f02d6783e9
commit
3c5d19e411
|
@ -253,7 +253,7 @@ int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap)
|
|||
/* The buffer is too small for _vsnprintf to write the
|
||||
* null-terminator at its end and return size. */
|
||||
str[size - 1] = '\0';
|
||||
return size;
|
||||
return (int)size;
|
||||
}
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
|
|
Loading…
Reference in New Issue