Skip to content

Commit 270837b

Browse files
ci fixes for wasl and c-global checker
1 parent 4602616 commit 270837b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/dictobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ typedef struct {
630630
PyDictKeysObject keys;
631631
} _PyDict_EmptyKeysStorage;
632632

633-
static _PyDict_EmptyKeysStorage empty_keys_storage = {
633+
static const _PyDict_EmptyKeysStorage empty_keys_storage = {
634634
{DKIX_EMPTY, DKIX_EMPTY, DKIX_EMPTY, DKIX_EMPTY,
635635
DKIX_EMPTY, DKIX_EMPTY, DKIX_EMPTY, DKIX_EMPTY},
636636
{
@@ -648,7 +648,7 @@ static _PyDict_EmptyKeysStorage empty_keys_storage = {
648648
}
649649
};
650650

651-
#define Py_EMPTY_KEYS (&empty_keys_storage.keys)
651+
#define Py_EMPTY_KEYS ((PyDictKeysObject *)&empty_keys_storage.keys)
652652

653653
/* Uncomment to check the dict content in _PyDict_CheckConsistency() */
654654
// #define DEBUG_PYDICT

0 commit comments

Comments
 (0)