summaryrefslogtreecommitdiffstats
path: root/Python/pyhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pyhash.c')
-rw-r--r--Python/pyhash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pyhash.c b/Python/pyhash.c
index 6fc12fd..4c0b929 100644
--- a/Python/pyhash.c
+++ b/Python/pyhash.c
@@ -272,8 +272,8 @@ fnv(const void *src, Py_ssize_t len)
x = (_PyHASH_MULTIPLIER * x) ^ (Py_uhash_t) *p++;
x ^= (Py_uhash_t) len;
x ^= (Py_uhash_t) _Py_HashSecret.fnv.suffix;
- if (x == -1) {
- x = -2;
+ if (x == (Py_uhash_t) -1) {
+ x = (Py_uhash_t) -2;
}
return x;
}