mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-04 21:04:41 +00:00
prepare for Py_ssize_t conversion
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3531 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
b274787c5b
commit
2e5a5d20df
2 changed files with 157 additions and 156 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -2191,8 +2191,8 @@ static PyObject* parser_flush (parser_object* self, PyObject* args) {
|
|||
int error = 0;
|
||||
const char* enc = PyString_AsString(self->encoding);
|
||||
PyObject* s = PyUnicode_Decode(self->userData->buf,
|
||||
strlen(self->userData->buf),
|
||||
enc, "ignore");
|
||||
(Py_ssize_t)strlen(self->userData->buf),
|
||||
enc, "ignore");
|
||||
PyObject* callback = NULL;
|
||||
PyObject* result = NULL;
|
||||
/* reset buffer */
|
||||
|
|
|
|||
Loading…
Reference in a new issue