commit | a07da09ad5bd7d234ccd084a3a0933c290d1b592 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | Thu Apr 22 08:34:57 2021 -0700 |
committer | GitHub <noreply@github.com> | Thu Apr 22 08:34:57 2021 -0700 |
tree | 8c1ab67575527bd5c0c9452a74458ad5a29a1d08 | |
parent | accea7dc2bd30a6e8e1b0334acfca9585cbd7f8a [diff] [blame] |
bpo-43475: Fix worst case collision behavior for NaN instances (GH-25493)
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index b3c41b1..7e78132 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c
@@ -556,7 +556,7 @@ float_richcompare(PyObject *v, PyObject *w, int op) static Py_hash_t float_hash(PyFloatObject *v) { - return _Py_HashDouble(v->ob_fval); + return _Py_HashDouble((PyObject *)v, v->ob_fval); } static PyObject *