Skip to content

Commit 708bbae

Browse files
committed
fix const test
1 parent ae9ad1d commit 708bbae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/dictobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ typedef struct {
655655
PyDictKeysObject keys;
656656
} _PyDict_EmptyKeys;
657657

658-
static _PyDict_EmptyKeys empty_keys = {
658+
static _PyDict_EmptyKeys empty_keys_struct = {
659659
.indices = {
660660
DKIX_EMPTY, DKIX_EMPTY, DKIX_EMPTY, DKIX_EMPTY,
661661
DKIX_EMPTY, DKIX_EMPTY, DKIX_EMPTY, DKIX_EMPTY,
@@ -674,7 +674,7 @@ static _PyDict_EmptyKeys empty_keys = {
674674
},
675675
};
676676

677-
#define Py_EMPTY_KEYS &empty_keys.keys
677+
#define Py_EMPTY_KEYS &empty_keys_struct.keys
678678

679679
/* Uncomment to check the dict content in _PyDict_CheckConsistency() */
680680
// #define DEBUG_PYDICT

0 commit comments

Comments
 (0)