File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ What's New in Python 3.3.0 Beta 1?
10
10
Core and Builtins
11
11
-----------------
12
12
13
+ - Issue #14815: Use Py_ssize_t instead of long for the object hash, to
14
+ preserve all 64 bits of hash on Win64.
15
+
13
16
- Issue #12268: File readline, readlines and read() or readall() methods
14
17
no longer lose data when an underlying read system call is interrupted.
15
18
IOError is no longer raised due to a read system call returning EINTR
Original file line number Diff line number Diff line change @@ -234,10 +234,10 @@ random_seed(RandomObject *self, PyObject *args)
234
234
if (PyLong_Check (arg ))
235
235
n = PyNumber_Absolute (arg );
236
236
else {
237
- long hash = PyObject_Hash (arg );
237
+ Py_ssize_t hash = PyObject_Hash (arg );
238
238
if (hash == -1 )
239
239
goto Done ;
240
- n = PyLong_FromUnsignedLong (( unsigned long ) hash );
240
+ n = PyLong_FromSsize_t ( hash );
241
241
}
242
242
if (n == NULL )
243
243
goto Done ;
You can’t perform that action at this time.
0 commit comments