There was an error while loading. Please reload this page.
1 parent fcf1ca5 commit de02314Copy full SHA for de02314
1 file changed
src/cstring.c
@@ -42,7 +42,7 @@ static PyObject *_cstring_new(PyTypeObject *type, const char *value, Py_ssize_t
42
static PyObject *_cstring_realloc(PyObject *self, Py_ssize_t len) {
43
if(Py_REFCNT(self) > 1)
44
return PyErr_BadInternalCall(), NULL;
45
- struct cstring *new = (struct cstring *)PyObject_Realloc(self, sizeof(struct cstring) + len + 1);
+ struct cstring *new = PyObject_Realloc(self, sizeof(struct cstring) + len + 1);
46
if(!new)
47
return PyErr_NoMemory();
48
Py_SET_SIZE(new, len + 1);
0 commit comments