summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-01-22 22:56:06 -0800
committerGregory P. Smith <greg@krypto.org>2015-01-22 22:56:06 -0800
commit8d0474182b3c0dba017357ed7e3a7d6b5a0e05cb (patch)
tree5635e9e954272393a993fdaa3cf563e91f86f383 /Python/thread.c
parent52d4e1bd942e0dd6209c9e60b3f3cc98eea14b90 (diff)
parent07a465b24e1fc5e4804e536312c917017d0b663e (diff)
downloadcpython-8d0474182b3c0dba017357ed7e3a7d6b5a0e05cb.tar.gz
revert 7b833bd1f509. I misread the side effect that the code was triggering.
*any* kwarg supplied to _assert_python causes it to not append -E to the command line flags so without='-E' does effectively work.
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 4e695aeca2..44c071eafe 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();