summaryrefslogtreecommitdiff
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-01-14 15:45:13 -0800
committerGregory P. Smith <greg@krypto.org>2012-01-14 15:45:13 -0800
commitf5b62a9b314e71e6bd5014be92ad1d10ff8e0d63 (patch)
treefeb12ee5852eb7674802e9de3c2ef9c32c4f9ee6 /Objects/unicodeobject.c
parentd66b5051551b1d5199aaf5d30368d22232f49524 (diff)
parent63e6c3222f563cfb156de6e92199e9e35ad5d832 (diff)
downloadcpython-git-f5b62a9b314e71e6bd5014be92ad1d10ff8e0d63.tar.gz
Consolidate the occurrances of the prime used as the multiplier when hashing.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index e97ce1f6e6..59fc123790 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -11210,7 +11210,7 @@ unicode_hash(PyObject *self)
#define HASH(P) \
x = (Py_uhash_t)*P << 7; \
while (--len >= 0) \
- x = (1000003*x) ^ (Py_uhash_t)*P++;
+ x = (_PyHASH_MULTIPLIER*x) ^ (Py_uhash_t)*P++;
switch (PyUnicode_KIND(self)) {
case PyUnicode_1BYTE_KIND: {