summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-14 21:18:31 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-14 21:18:31 +0300
commitc1d9bb342c40ba1e7b0cf69214726d269f1d74db (patch)
treef971494fc467034d9f7ac082fc9930d76dde5764 /Python/thread.c
parent8664b17c9457da72299bf05ca734b02c6cea00f1 (diff)
parentb0e630183e0663e0651c5d8fe54a15fb46699d0c (diff)
downloadcpython-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.c2
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();