mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-07 20:41:50 +02:00
Fix warning.
This commit is contained in:
parent
2e41d4dfcd
commit
4f6d95d77e
@ -3514,7 +3514,9 @@ Error String::parse_utf16(const char16_t *p_utf16, int p_len) {
|
|||||||
{
|
{
|
||||||
const char16_t *ptrtmp = p_utf16;
|
const char16_t *ptrtmp = p_utf16;
|
||||||
const char16_t *ptrtmp_limit = &p_utf16[p_len];
|
const char16_t *ptrtmp_limit = &p_utf16[p_len];
|
||||||
|
#if PRINT_UNICODE_ERRORS
|
||||||
uint32_t c_prev = 0;
|
uint32_t c_prev = 0;
|
||||||
|
#endif
|
||||||
bool skip = false;
|
bool skip = false;
|
||||||
while (ptrtmp != ptrtmp_limit && *ptrtmp) {
|
while (ptrtmp != ptrtmp_limit && *ptrtmp) {
|
||||||
uint32_t c = (byteswap) ? BSWAP16(*ptrtmp) : *ptrtmp;
|
uint32_t c = (byteswap) ? BSWAP16(*ptrtmp) : *ptrtmp;
|
||||||
@ -3541,7 +3543,9 @@ Error String::parse_utf16(const char16_t *p_utf16, int p_len) {
|
|||||||
skip = false;
|
skip = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if PRINT_UNICODE_ERRORS
|
||||||
c_prev = c;
|
c_prev = c;
|
||||||
|
#endif
|
||||||
str_size++;
|
str_size++;
|
||||||
cstr_size++;
|
cstr_size++;
|
||||||
ptrtmp++;
|
ptrtmp++;
|
||||||
|
Loading…
Reference in New Issue
Block a user