Skip to content

Commit de02314

Browse files
committed
Remove unneeded cast
1 parent fcf1ca5 commit de02314

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static PyObject *_cstring_new(PyTypeObject *type, const char *value, Py_ssize_t
4242
static PyObject *_cstring_realloc(PyObject *self, Py_ssize_t len) {
4343
if(Py_REFCNT(self) > 1)
4444
return PyErr_BadInternalCall(), NULL;
45-
struct cstring *new = (struct cstring *)PyObject_Realloc(self, sizeof(struct cstring) + len + 1);
45+
struct cstring *new = PyObject_Realloc(self, sizeof(struct cstring) + len + 1);
4646
if(!new)
4747
return PyErr_NoMemory();
4848
Py_SET_SIZE(new, len + 1);

0 commit comments

Comments
 (0)