]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33954: Rewrite FILL() macro of unicodeobject.c (GH-10738)
authorVictor Stinner <vstinner@redhat.com>
Tue, 27 Nov 2018 11:42:04 +0000 (12:42 +0100)
committerGitHub <noreply@github.com>
Tue, 27 Nov 2018 11:42:04 +0000 (12:42 +0100)
commit7f9fb0f34555641722be5468b7fbd53dd3c0f1e2
treea68f414c1e91f34150624697ba36b6b5ca81be45
parent716a8089b04095acaba493925751df194a4916bb
bpo-33954: Rewrite FILL() macro of unicodeobject.c (GH-10738)

Copy code from master: add assertions on start and value, replace 'i'
iterator with 'end' pointer for the loop stop condition.

_PyUnicode_FastFill(): fix type of 'data', it must not be constant,
since data is modified by FILL().
Objects/unicodeobject.c