Skip to content

Commit

Permalink
merge 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Sep 7, 2016
2 parents d519e02 + 4a75760 commit 35b40c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ _Py_hashtable_set(_Py_hashtable_t *ht, size_t key_size, const void *pkey,

entry->key_hash = key_hash;
Py_MEMCPY((void *)_Py_HASHTABLE_ENTRY_PKEY(entry), pkey, ht->key_size);
ENTRY_WRITE_PDATA(ht, entry, data_size, data);
if (data)
ENTRY_WRITE_PDATA(ht, entry, data_size, data);

_Py_slist_prepend(&ht->buckets[index], (_Py_slist_item_t*)entry);
ht->entries++;
Expand Down

0 comments on commit 35b40c6

Please sign in to comment.