Show More
@@ -639,7 +639,7 b' static PyObject *hashmangle(const char *' | |||||
639 | memcopy(dest, &destlen, destsize, &src[lastdot], |
|
639 | memcopy(dest, &destlen, destsize, &src[lastdot], | |
640 | len - lastdot - 1); |
|
640 | len - lastdot - 1); | |
641 |
|
641 | |||
642 | PyBytes_Check(ret); |
|
642 | assert(PyBytes_Check(ret)); | |
643 | Py_SIZE(ret) = destlen; |
|
643 | Py_SIZE(ret) = destlen; | |
644 |
|
644 | |||
645 | return ret; |
|
645 | return ret; | |
@@ -752,7 +752,7 b' PyObject *pathencode(PyObject *self, PyO' | |||||
752 | newobj = PyBytes_FromStringAndSize(NULL, newlen); |
|
752 | newobj = PyBytes_FromStringAndSize(NULL, newlen); | |
753 |
|
753 | |||
754 | if (newobj) { |
|
754 | if (newobj) { | |
755 | PyBytes_Check(newobj); |
|
755 | assert(PyBytes_Check(newobj)); | |
756 | Py_SIZE(newobj)--; |
|
756 | Py_SIZE(newobj)--; | |
757 | basicencode(PyBytes_AS_STRING(newobj), newlen, path, |
|
757 | basicencode(PyBytes_AS_STRING(newobj), newlen, path, | |
758 | len + 1); |
|
758 | len + 1); |
General Comments 0
You need to be logged in to leave comments.
Login now