mirror of
https://github.com/python/cpython.git
synced 2026-02-05 09:25:35 +00:00
Fix compiler warning (gcc)
This commit is contained in:
parent
76a4b896c4
commit
9e8a250ed9
1 changed files with 1 additions and 1 deletions
|
|
@ -1076,7 +1076,7 @@ _Py_HashPointer(void *p)
|
|||
size_t y = (size_t)p;
|
||||
/* bottom 3 or 4 bits are likely to be 0; rotate y by 4 to avoid
|
||||
excessive hash collisions for dicts and sets */
|
||||
y = (y >> 4) | (y << 8*SIZEOF_VOID_P - 4);
|
||||
y = (y >> 4) | (y << (8 * SIZEOF_VOID_P - 4));
|
||||
x = (long)y;
|
||||
if (x == -1)
|
||||
x = -2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue