msvcrt: Don't increment variables both in the loop header and body (clang).
Signed-off-by: André Hentschel <nerv@dawncrow.de> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3263d51a1f
commit
807d47d448
|
@ -2011,13 +2011,12 @@ MSVCRT_size_t CDECL _mbsspn(const unsigned char* string, const unsigned char* se
|
|||
{
|
||||
if (_ismbblead(*p))
|
||||
{
|
||||
for (q = set; *q; q++)
|
||||
for (q = set; *q; q += 2)
|
||||
{
|
||||
if (!q[1])
|
||||
break;
|
||||
if ((*p == *q) && (p[1] == q[1]))
|
||||
break;
|
||||
q++;
|
||||
}
|
||||
if (!q[0] || !q[1]) break;
|
||||
}
|
||||
|
@ -2043,13 +2042,12 @@ unsigned char* CDECL _mbsspnp(const unsigned char* string, const unsigned char*
|
|||
{
|
||||
if (_ismbblead(*p))
|
||||
{
|
||||
for (q = set; *q; q++)
|
||||
for (q = set; *q; q += 2)
|
||||
{
|
||||
if (!q[1])
|
||||
break;
|
||||
if ((*p == *q) && (p[1] == q[1]))
|
||||
break;
|
||||
q++;
|
||||
}
|
||||
if (!q[0] || !q[1]) break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue