Mercurial > cpython-lru_cache-weakref
diff Objects/classobject.c @ 65494:e8969fb822fc
make hashes always the size of pointers; introduce Py_hash_t #9778
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 17 Oct 2010 20:54:53 +0000 |
| parents | cab14be0ada1 |
| children | 4b724884c81f d0b0fcbb40db |
line wrap: on
line diff
--- a/Objects/classobject.c Sun Oct 17 20:17:41 2010 +0000 +++ b/Objects/classobject.c Sun Oct 17 20:54:53 2010 +0000 @@ -263,10 +263,10 @@ return result; } -static long +static Py_hash_t method_hash(PyMethodObject *a) { - long x, y; + Py_hash_t x, y; if (a->im_self == NULL) x = PyObject_Hash(Py_None); else
