]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-143842: Make optimizer color table static (GH-143846)
authorMohammad Miadh Angkad <mangkad.bsdsba2027@aim.edu>
Wed, 14 Jan 2026 20:37:13 +0000 (04:37 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Jan 2026 20:37:13 +0000 (20:37 +0000)
Misc/NEWS.d/next/Build/2026-01-15-03-36-16.gh-issue-143842.EZLutl.rst [new file with mode: 0644]
Python/optimizer.c

diff --git a/Misc/NEWS.d/next/Build/2026-01-15-03-36-16.gh-issue-143842.EZLutl.rst b/Misc/NEWS.d/next/Build/2026-01-15-03-36-16.gh-issue-143842.EZLutl.rst
new file mode 100644 (file)
index 0000000..4d5b114
--- /dev/null
@@ -0,0 +1,2 @@
+Prevent static builds from clashing with curses by making the optimizer
+COLORS table static.
index a2a1feb8b9e147485c45316903e6f42d6d240837..c5f47d7f22c3f0a71d071c5d263181b56a3d33c0 100644 (file)
@@ -2009,7 +2009,7 @@ find_line_number(PyCodeObject *code, _PyExecutorObject *executor)
 #define BLACK "#000000"
 #define LOOP "#00c000"
 
-const char *COLORS[10] = {
+static const char *COLORS[10] = {
     "9",
     "8",
     "7",