summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2020-06-22 07:41:48 (GMT)
committerGitHub <noreply@github.com>2020-06-22 07:41:48 (GMT)
commit4901ea952691ad70aae21cfe04b6bd363b5a6aff (patch)
tree8706caa4e440749ec5e5973559fe7ebac5b7da44 /Modules
parentd780fa7931d8ce94994827232d7cca79b0be3bf1 (diff)
downloadcpython-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.c4
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()