mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (#140637)
This commit is contained in:
parent
f5da369e20
commit
7d70a147f5
1 changed files with 0 additions and 2 deletions
|
|
@ -5409,7 +5409,6 @@ unicode_decode_utf8(const char *s, Py_ssize_t size,
|
|||
if (maxchr <= 255) {
|
||||
memcpy(PyUnicode_1BYTE_DATA(u), s, pos);
|
||||
s += pos;
|
||||
size -= pos;
|
||||
writer.pos = pos;
|
||||
}
|
||||
|
||||
|
|
@ -5457,7 +5456,6 @@ unicode_decode_utf8_writer(_PyUnicodeWriter *writer,
|
|||
return 0;
|
||||
}
|
||||
s += decoded;
|
||||
size -= decoded;
|
||||
}
|
||||
|
||||
return unicode_decode_utf8_impl(writer, starts, s, end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue