Show More
@@ -176,7 +176,7 b' PyObject *encodedir(PyObject *self, PyOb' | |||||
176 |
|
176 | |||
177 | if (newobj) { |
|
177 | if (newobj) { | |
178 | assert(PyBytes_Check(newobj)); |
|
178 | assert(PyBytes_Check(newobj)); | |
179 |
Py_SIZE(newobj)- |
|
179 | Py_SET_SIZE(newobj, Py_SIZE(newobj) - 1); | |
180 | _encodedir(PyBytes_AS_STRING(newobj), newlen, path, len + 1); |
|
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 | if (newobj) { |
|
792 | if (newobj) { | |
793 | assert(PyBytes_Check(newobj)); |
|
793 | assert(PyBytes_Check(newobj)); | |
794 |
Py_SIZE(newobj)- |
|
794 | Py_SET_SIZE(newobj, Py_SIZE(newobj) - 1); | |
795 | basicencode(PyBytes_AS_STRING(newobj), newlen, path, |
|
795 | basicencode(PyBytes_AS_STRING(newobj), newlen, path, | |
796 | len + 1); |
|
796 | len + 1); | |
797 | } |
|
797 | } |
General Comments 0
You need to be logged in to leave comments.
Login now