Merge pull request #85917 from akien-mga/3.x-fix-Wtype-limits-gcc-arm64

[3.x] Fix various GCC 13 warnings
This commit is contained in:
Rémi Verschelde
2023-12-11 20:02:09 +01:00
7 changed files with 18 additions and 18 deletions

View File

@@ -1460,7 +1460,11 @@ bool String::parse_utf8(const char *p_utf8, int p_len, bool p_skip_cr) {
int skip = 0;
while (ptrtmp != ptrtmp_limit && *ptrtmp) {
if (skip == 0) {
#if CHAR_MIN == 0
uint8_t c = *ptrtmp;
#else
uint8_t c = *ptrtmp >= 0 ? *ptrtmp : uint8_t(256 + *ptrtmp);
#endif
if (p_skip_cr && c == '\r') {
ptrtmp++;