Skip to content

Commit

Permalink
Rerun AC, silence pointer conversion warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
loewis committed Jul 27, 2014
1 parent 7252a6e commit 0efea32
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 73 deletions.
4 changes: 2 additions & 2 deletions Objects/bytearrayobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3263,7 +3263,7 @@ bytearray_decode_impl(PyByteArrayObject *self, const char *encoding, const char
{
if (encoding == NULL)
encoding = PyUnicode_GetDefaultEncoding();
return PyUnicode_FromEncodedObject(self, encoding, errors);
return PyUnicode_FromEncodedObject((PyObject*)self, encoding, errors);
}

PyDoc_STRVAR(alloc_doc,
Expand Down Expand Up @@ -3307,7 +3307,7 @@ static PyObject *
bytearray_join(PyByteArrayObject *self, PyObject *iterable_of_bytes)
/*[clinic end generated code: output=544e7430032dfdf4 input=aba6b1f9b30fcb8e]*/
{
return stringlib_bytes_join(self, iterable_of_bytes);
return stringlib_bytes_join((PyObject*)self, iterable_of_bytes);
}

/*[clinic input]
Expand Down
Loading

0 comments on commit 0efea32

Please sign in to comment.