@@ -275,10 +275,10 @@ load_keys_nentries(PyDictObject *mp)
275
275
276
276
#endif
277
277
278
- #define STORE_KEY (ep , key ) FT_ATOMIC_STORE_PTR_RELEASE(ep ->me_key, key)
279
- #define STORE_VALUE (ep , value ) FT_ATOMIC_STORE_PTR_RELEASE(ep ->me_value, value)
278
+ #define STORE_KEY (ep , key ) FT_ATOMIC_STORE_PTR_RELEASE((ep) ->me_key, key)
279
+ #define STORE_VALUE (ep , value ) FT_ATOMIC_STORE_PTR_RELEASE((ep) ->me_value, value)
280
280
#define STORE_SPLIT_VALUE (mp , idx , value ) FT_ATOMIC_STORE_PTR_RELEASE(mp->ma_values->values[idx], value)
281
- #define STORE_HASH (ep , hash ) FT_ATOMIC_STORE_SSIZE_RELAXED(ep ->me_hash, hash)
281
+ #define STORE_HASH (ep , hash ) FT_ATOMIC_STORE_SSIZE_RELAXED((ep) ->me_hash, hash)
282
282
#define STORE_KEYS_USABLE (keys , usable ) FT_ATOMIC_STORE_SSIZE_RELAXED(keys->dk_usable, usable)
283
283
#define STORE_KEYS_NENTRIES (keys , nentries ) FT_ATOMIC_STORE_SSIZE_RELAXED(keys->dk_nentries, nentries)
284
284
#define STORE_USED (mp , used ) FT_ATOMIC_STORE_SSIZE_RELAXED(mp->ma_used, used)
@@ -4534,8 +4534,8 @@ dict_popitem_impl(PyDictObject *self)
4534
4534
_PyDict_NotifyEvent (interp , PyDict_EVENT_DELETED , self , key , NULL );
4535
4535
hash = unicode_get_hash (key );
4536
4536
value = ep0 [i ].me_value ;
4537
- ep0 [i ]. me_key = NULL ;
4538
- ep0 [i ]. me_value = NULL ;
4537
+ STORE_KEY ( & ep0 [i ], NULL ) ;
4538
+ STORE_VALUE ( & ep0 [i ], NULL ) ;
4539
4539
}
4540
4540
else {
4541
4541
PyDictKeyEntry * ep0 = DK_ENTRIES (self -> ma_keys );
@@ -4549,9 +4549,9 @@ dict_popitem_impl(PyDictObject *self)
4549
4549
_PyDict_NotifyEvent (interp , PyDict_EVENT_DELETED , self , key , NULL );
4550
4550
hash = ep0 [i ].me_hash ;
4551
4551
value = ep0 [i ].me_value ;
4552
- ep0 [i ]. me_key = NULL ;
4553
- ep0 [i ]. me_hash = -1 ;
4554
- ep0 [i ]. me_value = NULL ;
4552
+ STORE_KEY ( & ep0 [i ], NULL ) ;
4553
+ STORE_HASH ( & ep0 [i ], -1 ) ;
4554
+ STORE_VALUE ( & ep0 [i ], NULL ) ;
4555
4555
}
4556
4556
4557
4557
j = lookdict_index (self -> ma_keys , hash , i );
0 commit comments