]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33954: Rewrite FILL() macro of unicodeobject.c (GH-10740)
authorVictor Stinner <vstinner@redhat.com>
Tue, 27 Nov 2018 13:30:55 +0000 (14:30 +0100)
committerGitHub <noreply@github.com>
Tue, 27 Nov 2018 13:30:55 +0000 (14:30 +0100)
commit54fa83e0a3f3b077763cb50705d7a7dbe4a40a4a
treeefa1586a41dc13055b10c5f3027fd5bb2e315948
parentb59fc311609aadaafaae68240127b4997b85859d
bpo-33954: Rewrite FILL() macro of unicodeobject.c (GH-10740)

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