mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-43475: Fix worst case collision behavior for NaN instances (GH-25493)
This commit is contained in:
parent
accea7dc2b
commit
a07da09ad5
10 changed files with 25 additions and 21 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue