diff options
| author | Benjamin Peterson <benjamin@python.org> | 2010-10-17 20:54:53 +0000 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2010-10-17 20:54:53 +0000 |
| commit | 8c3324e313c1adb92a1e38bbcbaa494bf97b754d (patch) | |
| tree | 25e2c647d7ba30fae6dd1d0446b9eaa6997c17e8 /Objects/codeobject.c | |
| parent | 7ce1b2b4dc3414cd9e8bca771ee92a52e67db390 (diff) | |
| download | cpython-8c3324e313c1adb92a1e38bbcbaa494bf97b754d.tar.gz | |
make hashes always the size of pointers; introduce Py_hash_t #9778
Diffstat (limited to 'Objects/codeobject.c')
| -rw-r--r-- | Objects/codeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index da5c09ac8d..54c23aec36 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -417,10 +417,10 @@ code_richcompare(PyObject *self, PyObject *other, int op) return res; } -static long +static Py_hash_t code_hash(PyCodeObject *co) { - long h, h0, h1, h2, h3, h4, h5, h6; + Py_hash_t h, h0, h1, h2, h3, h4, h5, h6; h0 = PyObject_Hash(co->co_name); if (h0 == -1) return -1; h1 = PyObject_Hash(co->co_code); |
