##// END OF EJS Templates
cext: fix Python 3.11 compatibility - Py_SIZE is not an lvalue (issue6610)...
Mads Kiilerich -
r49153:e3580733 stable
parent child Browse files
Show More
@@ -176,7 +176,7 b' PyObject *encodedir(PyObject *self, PyOb'
176 176
177 177 if (newobj) {
178 178 assert(PyBytes_Check(newobj));
179 Py_SIZE(newobj)--;
179 Py_SET_SIZE(newobj, Py_SIZE(newobj) - 1);
180 180 _encodedir(PyBytes_AS_STRING(newobj), newlen, path, len + 1);
181 181 }
182 182
@@ -791,7 +791,7 b' PyObject *pathencode(PyObject *self, PyO'
791 791
792 792 if (newobj) {
793 793 assert(PyBytes_Check(newobj));
794 Py_SIZE(newobj)--;
794 Py_SET_SIZE(newobj, Py_SIZE(newobj) - 1);
795 795 basicencode(PyBytes_AS_STRING(newobj), newlen, path,
796 796 len + 1);
797 797 }
General Comments 0
You need to be logged in to leave comments. Login now