This commit is contained in:
Jan Edmund Lazo
2018-08-12 18:21:58 -04:00
parent cfb2383c26
commit a4c957bab7
2 changed files with 7 additions and 7 deletions

View File

@@ -1380,15 +1380,15 @@ retry:
}
} else if (fio_flags & FIO_UCS4) {
if (fio_flags & FIO_ENDIAN_L) {
u8c = (unsigned)*--p << 24;
u8c += (unsigned)*--p << 16;
u8c += (unsigned)*--p << 8;
u8c = (unsigned)(*--p) << 24;
u8c += (unsigned)(*--p) << 16;
u8c += (unsigned)(*--p) << 8;
u8c += *--p;
} else { /* big endian */
u8c = *--p;
u8c += (unsigned)*--p << 8;
u8c += (unsigned)*--p << 16;
u8c += (unsigned)*--p << 24;
u8c += (unsigned)(*--p) << 8;
u8c += (unsigned)(*--p) << 16;
u8c += (unsigned)(*--p) << 24;
}
} else { /* UTF-8 */
if (*--p < 0x80)

View File

@@ -2139,7 +2139,7 @@ static int nfa_regbranch(void)
if (nfa_regconcat() == FAIL)
return FAIL;
/* Try next concats */
// Try next concats
while (peekchr() == Magic('&')) {
skipchr();
// if concat is empty do emit a node