diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-08-15 23:03:39 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-08-15 23:03:39 (GMT) |
commit | 706768c687f5413c909168736506aaf4fb4861c0 (patch) | |
tree | 98131f201f269d30031ed6e3c6d98fe4cf1fe649 /Modules/_tkinter.c | |
parent | 12174a5dcaf1bdcd8d5fd790a8cad07049bddce6 (diff) | |
download | cpython-706768c687f5413c909168736506aaf4fb4861c0.zip cpython-706768c687f5413c909168736506aaf4fb4861c0.tar.gz cpython-706768c687f5413c909168736506aaf4fb4861c0.tar.bz2 |
Issue #22156: Fix some "comparison between signed and unsigned integers"
compiler warnings in the Modules/ subdirectory.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index b5f23bc..0717594 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1414,7 +1414,7 @@ varname_converter(PyObject *in, void *_out) return 0; } s = PyBytes_AsString(in); - if (strlen(s) != PyBytes_Size(in)) { + if (strlen(s) != (size_t)PyBytes_Size(in)) { PyErr_SetString(PyExc_ValueError, "null byte in bytes object"); return 0; } @@ -1431,7 +1431,7 @@ varname_converter(PyObject *in, void *_out) PyErr_SetString(PyExc_OverflowError, "string is too long"); return 0; } - if (strlen(s) != size) { + if (strlen(s) != (size_t)size) { PyErr_SetString(PyExc_ValueError, "null character in string"); return 0; } |