python-cffi/69660bd.patch
2023-06-14 09:08:44 +02:00

26 lines
930 B
Diff

From 69660bdf6544338edd524b73004b7accfa464c68 Mon Sep 17 00:00:00 2001
From: Armin Rigo <arigo@tunes.org>
Date: Thu, 8 Jun 2023 19:02:08 +0200
Subject: [PATCH] gah
---
c/misc_thread_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/c/misc_thread_common.h b/c/misc_thread_common.h
index 9e9a818d..ead9c83c 100644
--- a/c/misc_thread_common.h
+++ b/c/misc_thread_common.h
@@ -166,7 +166,7 @@ thread_canary_free_zombies(void)
break;
PyThreadState_Clear(tstate); /* calls thread_canary_dealloc on 'ob',
but now ob->zombie_next == NULL. */
-#if PY_HEX_VERSION >= 0x030C0000
+#if PY_VERSION_HEX >= 0x030C0000
/* this might be a bug introduced in 3.12, or just me abusing the
API around there. The issue is that PyThreadState_Delete()
called on a random old tstate will clear the *current* thread
--
GitLab