diff options
author | Christian Heimes <christian@python.org> | 2020-06-22 07:41:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 07:41:48 (GMT) |
commit | 4901ea952691ad70aae21cfe04b6bd363b5a6aff (patch) | |
tree | 8706caa4e440749ec5e5973559fe7ebac5b7da44 /Modules | |
parent | d780fa7931d8ce94994827232d7cca79b0be3bf1 (diff) | |
download | cpython-4901ea952691ad70aae21cfe04b6bd363b5a6aff.zip cpython-4901ea952691ad70aae21cfe04b6bd363b5a6aff.tar.gz cpython-4901ea952691ad70aae21cfe04b6bd363b5a6aff.tar.bz2 |
bpo-41061: Fix incorrect expressions in hashtable (GH-21028)
Signed-off-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 7970e2f..ad74af8 100644 --- a/Modules/_testinternalcapi.c +++ b/Modules/_testinternalcapi.c @@ -197,8 +197,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() |