Skip to content

Commit 83d9db7

Browse files
cmaloneyvstinner
andauthored
Update Objects/unicodeobject.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 052457f commit 83d9db7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Objects/unicodeobject.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5064,14 +5064,13 @@ find_first_nonascii(const unsigned char *start, const unsigned char *end)
50645064
#endif
50655065

50665066
// Long ASCII runs: test eight words per branch.
5067-
while (end - p >= 8 * SIZEOF_SIZE_T) {
5067+
for (; end - p >= 8 * SIZEOF_SIZE_T; p += 8 * SIZEOF_SIZE_T) {
50685068
const size_t *w = (const size_t *)p;
50695069
if ((w[0] | w[1] | w[2] | w[3] |
50705070
w[4] | w[5] | w[6] | w[7]) & ASCII_CHAR_MASK)
50715071
{
50725072
break;
50735073
}
5074-
p += 8 * SIZEOF_SIZE_T;
50755074
}
50765075

50775076
const unsigned char *e = end - SIZEOF_SIZE_T;

0 commit comments

Comments
 (0)