Fixed Visual Studio warning 4389
This commit is contained in:
1 parent
d135daad5b
commit
0bd77a5b93
12 files changed
+19
-18
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user