mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 01:38:27 +00:00
Fixed Visual Studio warning 4389
This commit is contained in:
parent
d135daad5b
commit
0bd77a5b93
12 changed files with 19 additions and 18 deletions
|
@ -576,7 +576,7 @@ SDL_utf8strlcpy(SDL_OUT_Z_CAP(dst_bytes) char *dst, const char *src, size_t dst_
|
|||
c = (unsigned char)src[i];
|
||||
trailing_bytes = UTF8_GetTrailingBytes(c);
|
||||
if (trailing_bytes) {
|
||||
if (bytes - i != trailing_bytes + 1) {
|
||||
if ((bytes - i) != ((size_t)trailing_bytes + 1)) {
|
||||
bytes = i;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue