summaryrefslogtreecommitdiffstats
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-01-14 23:31:34 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-01-14 23:31:34 (GMT)
commit63e6c3222f563cfb156de6e92199e9e35ad5d832 (patch)
treeaf145dbe59f9ec446a9892e94064bf6b989c4086 /Objects/tupleobject.c
parent515687a7eda26d733c747e08205a1d861bc70673 (diff)
downloadcpython-63e6c3222f563cfb156de6e92199e9e35ad5d832.zip
cpython-63e6c3222f563cfb156de6e92199e9e35ad5d832.tar.gz
cpython-63e6c3222f563cfb156de6e92199e9e35ad5d832.tar.bz2
Consolidate the occurrances of the prime used as the multiplier when hashing
to a single #define instead of having several copies in several files. This excludes the Modules/ tree (datetime and expat both have a copy for their own purposes with no need for it to be the same).
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r--Objects/tupleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index 8aacd12..f6dbc31 100644
--- a/Objects/tupleobject.c
+++ b/Objects/tupleobject.c
@@ -315,7 +315,7 @@ tuplehash(PyTupleObject *v)
register Py_hash_t x, y;
register Py_ssize_t len = Py_SIZE(v);
register PyObject **p;
- Py_hash_t mult = 1000003L;
+ Py_hash_t mult = _PyHASH_MULTIPLIER;
x = 0x345678L;
p = v->ob_item;
while (--len >= 0) {