mirror of https://github.com/python/cpython.git
Cast the arguments to PyString_AsStringAndSize() to silence compiler warnings
on OS X.
This commit is contained in:
parent
ed427e7be9
commit
c81d3dc853
|
@ -166,7 +166,8 @@ dbm_contains(register dbmobject *dp, PyObject *v)
|
|||
{
|
||||
datum key, val;
|
||||
|
||||
if (PyString_AsStringAndSize(v, &key.dptr, &key.dsize)) {
|
||||
if (PyString_AsStringAndSize(v, (char **)&key.dptr,
|
||||
(Py_ssize_t *)&key.dsize)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue