diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-06-22 08:01:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 08:01:48 (GMT) |
commit | f19ed6b0c77ba3bdaa1d8c304a61f2fa90b5d6ac (patch) | |
tree | 7eac26165dbb1687a2d8879b2dfec251dc63c4eb /Modules | |
parent | 9fe5decf5f38ae247f4f354dee27e4bfbe8bc5f8 (diff) | |
download | cpython-f19ed6b0c77ba3bdaa1d8c304a61f2fa90b5d6ac.zip cpython-f19ed6b0c77ba3bdaa1d8c304a61f2fa90b5d6ac.tar.gz cpython-f19ed6b0c77ba3bdaa1d8c304a61f2fa90b5d6ac.tar.bz2 |
bpo-41061: Fix incorrect expressions in hashtable (GH-21028)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 4901ea952691ad70aae21cfe04b6bd363b5a6aff)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testinternalcapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c index 5f217dc..8faa9fe 100644 --- a/Modules/_testinternalcapi.c +++ b/Modules/_testinternalcapi.c @@ -119,8 +119,8 @@ test_hashtable(PyObject *self, PyObject *Py_UNUSED(args)) 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() |