Skip to content

Commit 8ba7930

Browse files
committed
Fix C89 incompatibility.
1 parent b09af03 commit 8ba7930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/codecs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,9 +613,9 @@ PyObject *PyCodec_XMLCharRefReplaceErrors(PyObject *exc)
613613
outp = PyUnicode_1BYTE_DATA(res);
614614
/* generate replacement */
615615
for (i = start, o = 0; i < end; ++i) {
616-
ch = PyUnicode_READ_CHAR(object, i);
617616
int digits;
618617
int base;
618+
ch = PyUnicode_READ_CHAR(object, i);
619619
*outp++ = '&';
620620
*outp++ = '#';
621621
if (ch<10) {

0 commit comments

Comments
 (0)