From 5d858465b6ebdafa05f86309457848cc26913b6a Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 20 Nov 2016 10:16:47 +0200 Subject: Added the const qualifier to char* variables that refer to readonly internal UTF-8 represenatation of Unicode objects. --- Modules/_tkinter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Modules/_tkinter.c') 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) { -- cgit v1.2.1