for (key='a'; key <= 'z'; key++) {
_Py_hashtable_entry_t *entry = _Py_hashtable_get_entry(table, TO_PTR(key));
assert(entry != NULL);
- assert(entry->key = TO_PTR(key));
- assert(entry->value = TO_PTR(VALUE(key)));
+ assert(entry->key == TO_PTR(key));
+ assert(entry->value == TO_PTR(VALUE(key)));
}
// Test _Py_hashtable_get()
{
Py_uhash_t key_hash = ht->hash_func(key);
size_t index = key_hash & (ht->nbuckets - 1);
- _Py_hashtable_entry_t *entry = entry = TABLE_HEAD(ht, index);
+ _Py_hashtable_entry_t *entry = TABLE_HEAD(ht, index);
while (1) {
if (entry == NULL) {
return NULL;
{
Py_uhash_t key_hash = _Py_hashtable_hash_ptr(key);
size_t index = key_hash & (ht->nbuckets - 1);
- _Py_hashtable_entry_t *entry = entry = TABLE_HEAD(ht, index);
+ _Py_hashtable_entry_t *entry = TABLE_HEAD(ht, index);
while (1) {
if (entry == NULL) {
return NULL;