Skip to content

Commit 97c59f9

Browse files
[3.14] Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (GH-140637) (#140658)
Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (GH-140637) (cherry picked from commit 7d70a14) Co-authored-by: Shamil <[email protected]>
1 parent 842c49b commit 97c59f9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Objects/unicodeobject.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5497,7 +5497,6 @@ unicode_decode_utf8(const char *s, Py_ssize_t size,
54975497
if (maxchr <= 255) {
54985498
memcpy(PyUnicode_1BYTE_DATA(u), s, pos);
54995499
s += pos;
5500-
size -= pos;
55015500
writer.pos = pos;
55025501
}
55035502

@@ -5545,7 +5544,6 @@ unicode_decode_utf8_writer(_PyUnicodeWriter *writer,
55455544
return 0;
55465545
}
55475546
s += decoded;
5548-
size -= decoded;
55495547
}
55505548

55515549
return unicode_decode_utf8_impl(writer, starts, s, end,

0 commit comments

Comments
 (0)