mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Issue #21036: Fix typo in macro name
_PY_HASHTABLE_ENTRY_DATA => _Py_HASHTABLE_ENTRY_DATA
This commit is contained in:
parent
df48b97855
commit
d9a7352348
3 changed files with 6 additions and 6 deletions
|
@ -326,7 +326,7 @@ _Py_hashtable_set(_Py_hashtable_t *ht, const void *key,
|
|||
entry->key_hash = key_hash;
|
||||
|
||||
assert(data_size == ht->data_size);
|
||||
memcpy(_PY_HASHTABLE_ENTRY_DATA(entry), data, data_size);
|
||||
memcpy(_Py_HASHTABLE_ENTRY_DATA(entry), data, data_size);
|
||||
|
||||
_Py_slist_prepend(&ht->buckets[index], (_Py_slist_item_t*)entry);
|
||||
ht->entries++;
|
||||
|
@ -504,7 +504,7 @@ _Py_hashtable_copy(_Py_hashtable_t *src)
|
|||
err = 1;
|
||||
}
|
||||
else {
|
||||
data = _PY_HASHTABLE_ENTRY_DATA(entry);
|
||||
data = _Py_HASHTABLE_ENTRY_DATA(entry);
|
||||
err = _Py_hashtable_set(dst, entry->key, data, src->data_size);
|
||||
}
|
||||
if (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue