diff options
author | ?ukasz Langa <lukasz@langa.pl> | 2017-02-10 00:20:16 -0800 |
---|---|---|
committer | ?ukasz Langa <lukasz@langa.pl> | 2017-02-10 00:20:16 -0800 |
commit | 8972587fab93cd27ac78b4eab3805f5e11164cb9 (patch) | |
tree | 3b6b18367a3054c41f3a186d60c321ef9a08ee38 /Modules/_tkinter.c | |
parent | c7a3f78cc193bfa7fc874f49ec2e0799b32da817 (diff) | |
parent | 2328d19475109a50de26fa42832a5286824b0391 (diff) | |
download | cpython-8972587fab93cd27ac78b4eab3805f5e11164cb9.tar.gz |
Merge 3.6 (fix #29519)
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 3e96aa0cd5..f69a4dfed9 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -536,7 +536,7 @@ SplitObj(PyObject *arg) else if (PyUnicode_Check(arg)) { int argc; const char **argv; - char *list = PyUnicode_AsUTF8(arg); + const char *list = PyUnicode_AsUTF8(arg); if (list == NULL || Tcl_SplitList((Tcl_Interp *)NULL, list, &argc, &argv) != TCL_OK) { @@ -993,7 +993,7 @@ asBignumObj(PyObject *value) Tcl_Obj *result; int neg; PyObject *hexstr; - char *hexchars; + const char *hexchars; mp_int bigValue; neg = Py_SIZE(value) < 0; @@ -1723,7 +1723,7 @@ class varname_converter(CConverter): static int varname_converter(PyObject *in, void *_out) { - char *s; + const char *s; const char **out = (const char**)_out; if (PyBytes_Check(in)) { if (PyBytes_GET_SIZE(in) > INT_MAX) { |