Commit a8eb5854 authored by A. Jesse Jiryu Davis's avatar A. Jesse Jiryu Davis Committed by INADA Naoki

bpo-31849: Fix warning in pyhash.c (GH-6799)

parent f7745e1d
...@@ -272,8 +272,8 @@ fnv(const void *src, Py_ssize_t len) ...@@ -272,8 +272,8 @@ fnv(const void *src, Py_ssize_t len)
x = (_PyHASH_MULTIPLIER * x) ^ (Py_uhash_t) *p++; x = (_PyHASH_MULTIPLIER * x) ^ (Py_uhash_t) *p++;
x ^= (Py_uhash_t) len; x ^= (Py_uhash_t) len;
x ^= (Py_uhash_t) _Py_HashSecret.fnv.suffix; x ^= (Py_uhash_t) _Py_HashSecret.fnv.suffix;
if (x == -1) { if (x == (Py_uhash_t) -1) {
x = -2; x = (Py_uhash_t) -2;
} }
return x; return x;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment