diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-03-18 16:47:51 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-03-18 16:47:51 (GMT) |
commit | c81d3dc8535a4a4a608e3b0a9da5079bfe80cf54 (patch) | |
tree | 2adb2bc38802cd963deb1173344ef6ac42319aa7 /Modules | |
parent | ed427e7be974bc89b232e6c3b4afe3e6ba54563b (diff) | |
download | cpython-c81d3dc8535a4a4a608e3b0a9da5079bfe80cf54.zip cpython-c81d3dc8535a4a4a608e3b0a9da5079bfe80cf54.tar.gz cpython-c81d3dc8535a4a4a608e3b0a9da5079bfe80cf54.tar.bz2 |
Cast the arguments to PyString_AsStringAndSize() to silence compiler warnings
on OS X.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/dbmmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c index fb6c7b6..c91ea47 100644 --- a/Modules/dbmmodule.c +++ b/Modules/dbmmodule.c @@ -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; } |