mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 00:48:09 +01: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_limit = &p_utf16[p_len];
|
||||
#if PRINT_UNICODE_ERRORS
|
||||
uint32_t c_prev = 0;
|
||||
#endif
|
||||
bool skip = false;
|
||||
while (ptrtmp != ptrtmp_limit && *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;
|
||||
}
|
||||
|
||||
#if PRINT_UNICODE_ERRORS
|
||||
c_prev = c;
|
||||
#endif
|
||||
str_size++;
|
||||
cstr_size++;
|
||||
ptrtmp++;
|
||||
|
Loading…
Reference in New Issue
Block a user