Skip to content

Commit 6fac5a4

Browse files
committed
Cast the arguments to PyString_AsStringAndSize() to silence compiler warnings
on OS X.
1 parent 9f7f05c commit 6fac5a4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/dbmmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ dbm_contains(register dbmobject *dp, PyObject *v)
166166
{
167167
datum key, val;
168168

169-
if (PyString_AsStringAndSize(v, &key.dptr, &key.dsize)) {
169+
if (PyString_AsStringAndSize(v, (char **)&key.dptr,
170+
(Py_ssize_t *)&key.dsize)) {
170171
return -1;
171172
}
172173

0 commit comments

Comments
 (0)