diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-14 21:18:31 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-14 21:18:31 +0300 |
commit | c1d9bb342c40ba1e7b0cf69214726d269f1d74db (patch) | |
tree | f971494fc467034d9f7ac082fc9930d76dde5764 /Python/thread.c | |
parent | 8664b17c9457da72299bf05ca734b02c6cea00f1 (diff) | |
parent | b0e630183e0663e0651c5d8fe54a15fb46699d0c (diff) | |
download | cpython-c1d9bb342c40ba1e7b0cf69214726d269f1d74db.tar.gz |
Issue #22384: An exception in Tkinter callback no longer crashes the program
when it is run with pythonw.exe.
Documented that Tk.report_callback_exception() is purposed to be overriden in
applications.
Diffstat (limited to 'Python/thread.c')
-rw-r--r-- | Python/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread.c b/Python/thread.c index d1cb0e6f9d..9eb5d12f50 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -431,7 +431,7 @@ PyThread_GetInfo(void) && defined(_CS_GNU_LIBPTHREAD_VERSION)) value = NULL; len = confstr(_CS_GNU_LIBPTHREAD_VERSION, buffer, sizeof(buffer)); - if (1 < len && len < sizeof(buffer)) { + if (1 < len && (size_t)len < sizeof(buffer)) { value = PyUnicode_DecodeFSDefaultAndSize(buffer, len-1); if (value == NULL) PyErr_Clear(); |