From a07da09ad5bd7d234ccd084a3a0933c290d1b592 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 22 Apr 2021 08:34:57 -0700 Subject: bpo-43475: Fix worst case collision behavior for NaN instances (GH-25493) --- Python/sysmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/sysmodule.c') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index a36d90f9de..911c2d967b 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1405,7 +1405,7 @@ get_hash_info(PyThreadState *tstate) PyStructSequence_SET_ITEM(hash_info, field++, PyLong_FromLong(_PyHASH_INF)); PyStructSequence_SET_ITEM(hash_info, field++, - PyLong_FromLong(_PyHASH_NAN)); + PyLong_FromLong(0)); // This is no longer used PyStructSequence_SET_ITEM(hash_info, field++, PyLong_FromLong(_PyHASH_IMAG)); PyStructSequence_SET_ITEM(hash_info, field++, -- cgit v1.2.1