File tree 2 files changed +4
-2
lines changed
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.
14
14
15
15
Fixed regressions
16
16
~~~~~~~~~~~~~~~~~
17
- -
17
+ - Pandas could not be built on PyPy ( :issue: ` 42355 `)
18
18
-
19
19
20
20
.. ---------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -272,14 +272,16 @@ Py_hash_t PANDAS_INLINE floatobject_hash(PyFloatObject* key) {
272
272
}
273
273
274
274
275
+ #define _PandasHASH_IMAG 1000003UL
276
+
275
277
// replaces _Py_HashDouble with _Pandas_HashDouble
276
278
Py_hash_t PANDAS_INLINE complexobject_hash (PyComplexObject * key ) {
277
279
Py_uhash_t realhash = (Py_uhash_t )_Pandas_HashDouble (key -> cval .real );
278
280
Py_uhash_t imaghash = (Py_uhash_t )_Pandas_HashDouble (key -> cval .imag );
279
281
if (realhash == (Py_uhash_t )- 1 || imaghash == (Py_uhash_t )- 1 ) {
280
282
return -1 ;
281
283
}
282
- Py_uhash_t combined = realhash + _PyHASH_IMAG * imaghash ;
284
+ Py_uhash_t combined = realhash + _PandasHASH_IMAG * imaghash ;
283
285
if (combined == (Py_uhash_t )- 1 ) {
284
286
return -2 ;
285
287
}
You can’t perform that action at this time.
0 commit comments