]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix compiler warning (gcc)
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 13 Feb 2009 13:57:40 +0000 (13:57 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 13 Feb 2009 13:57:40 +0000 (13:57 +0000)
Objects/object.c

index 8006fdab4d2be0737ad118d2719581a9136577b2..5dff3852e8f829eeca44fa2a6e7cb550a0dbfd57 100644 (file)
@@ -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;