summaryrefslogtreecommitdiff
path: root/Modules/_decimal/_decimal.c
diff options
context:
space:
mode:
authordoko <doko@ubuntu.com>2017-02-01 13:02:16 +0100
committerdoko <doko@ubuntu.com>2017-02-01 13:02:16 +0100
commit2e835c97b60f5f554ea4742abc1c0f801567f1b9 (patch)
treee57b9697de6321a39541c2e947940e275ca844d3 /Modules/_decimal/_decimal.c
parentba5a055a00d91a449a23ae14dd468e9b769a6b74 (diff)
parent75a56cd1847142d9c893b6df5fb674f54b34d9ed (diff)
downloadcpython-2e835c97b60f5f554ea4742abc1c0f801567f1b9.tar.gz
Merge 3.6
Diffstat (limited to 'Modules/_decimal/_decimal.c')
-rw-r--r--Modules/_decimal/_decimal.c2
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;
}