File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ including other versions of pandas.
1414
1515Fixed regressions
1616~~~~~~~~~~~~~~~~~
17- -
17+ - Pandas could not be built on PyPy ( :issue: ` 42355 `)
1818-
1919
2020.. ---------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -272,14 +272,16 @@ Py_hash_t PANDAS_INLINE floatobject_hash(PyFloatObject* key) {
272272}
273273
274274
275+ #define _PandasHASH_IMAG 1000003UL
276+
275277// replaces _Py_HashDouble with _Pandas_HashDouble
276278Py_hash_t PANDAS_INLINE complexobject_hash (PyComplexObject * key ) {
277279 Py_uhash_t realhash = (Py_uhash_t )_Pandas_HashDouble (key -> cval .real );
278280 Py_uhash_t imaghash = (Py_uhash_t )_Pandas_HashDouble (key -> cval .imag );
279281 if (realhash == (Py_uhash_t )- 1 || imaghash == (Py_uhash_t )- 1 ) {
280282 return -1 ;
281283 }
282- Py_uhash_t combined = realhash + _PyHASH_IMAG * imaghash ;
284+ Py_uhash_t combined = realhash + _PandasHASH_IMAG * imaghash ;
283285 if (combined == (Py_uhash_t )- 1 ) {
284286 return -2 ;
285287 }
You can’t perform that action at this time.
0 commit comments