diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-22 21:07:07 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-22 21:07:07 (GMT) |
commit | 2a404b63d48d73bbaa007d89efb7a01048475acd (patch) | |
tree | 66a217f6efa01478ca1741218fb059112675b0f1 /Modules/_gdbmmodule.c | |
parent | d528791096694307884762eebc8ec6fed279f302 (diff) | |
download | cpython-2a404b63d48d73bbaa007d89efb7a01048475acd.zip cpython-2a404b63d48d73bbaa007d89efb7a01048475acd.tar.gz cpython-2a404b63d48d73bbaa007d89efb7a01048475acd.tar.bz2 |
Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()
is now of type "const char *" rather of "char *".
Diffstat (limited to 'Modules/_gdbmmodule.c')
-rw-r--r-- | Modules/_gdbmmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_gdbmmodule.c b/Modules/_gdbmmodule.c index daae71d..b727ba6 100644 --- a/Modules/_gdbmmodule.c +++ b/Modules/_gdbmmodule.c @@ -319,7 +319,7 @@ dbm_contains(PyObject *self, PyObject *arg) return -1; } if (PyUnicode_Check(arg)) { - key.dptr = PyUnicode_AsUTF8AndSize(arg, &size); + key.dptr = (char *)PyUnicode_AsUTF8AndSize(arg, &size); key.dsize = size; if (key.dptr == NULL) return -1; |