diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-22 23:07:07 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-22 23:07:07 +0200 |
commit | 72ded8136b92c1b107f629021cf231fd3163f041 (patch) | |
tree | 9f4f51ddbd4f92c8e85ce0bd519f3f0ff65f2dba /Modules/_decimal | |
parent | 958f8e92cf0e79e54e1ee02b6a783eb7467e0c33 (diff) | |
download | cpython-72ded8136b92c1b107f629021cf231fd3163f041.tar.gz |
Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()
is now of type "const char *" rather of "char *".
Diffstat (limited to 'Modules/_decimal')
-rw-r--r-- | Modules/_decimal/_decimal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index fcc1f151cf..933b3f575a 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -3199,7 +3199,7 @@ dec_format(PyObject *dec, PyObject *args) } if (PyUnicode_Check(fmtarg)) { - fmt = PyUnicode_AsUTF8AndSize(fmtarg, &size); + fmt = (char *)PyUnicode_AsUTF8AndSize(fmtarg, &size); if (fmt == NULL) { return NULL; } |