Mercurial > cpython-lru_cache-weakref
diff Objects/bytesobject.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 | a4cfd5b5df96 |
| children | d31eaec883eb |
line wrap: on
line diff
--- a/Objects/bytesobject.c Sun Oct 17 20:17:41 2010 +0000 +++ b/Objects/bytesobject.c Sun Oct 17 20:54:53 2010 +0000 @@ -868,12 +868,12 @@ return result; } -static long +static Py_hash_t bytes_hash(PyBytesObject *a) { register Py_ssize_t len; register unsigned char *p; - register long x; + register Py_hash_t x; if (a->ob_shash != -1) return a->ob_shash;
