Skip to content

Commit 499706b

Browse files
authored
GH-143842: Make optimizer color table static (GH-143846)
1 parent 313d5cd commit 499706b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Prevent static builds from clashing with curses by making the optimizer
2+
COLORS table static.

Python/optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ find_line_number(PyCodeObject *code, _PyExecutorObject *executor)
20092009
#define BLACK "#000000"
20102010
#define LOOP "#00c000"
20112011

2012-
const char *COLORS[10] = {
2012+
static const char *COLORS[10] = {
20132013
"9",
20142014
"8",
20152015
"7",

0 commit comments

Comments
 (0)