We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f4d39e commit 4a6b885Copy full SHA for 4a6b885
Objects/longobject.c
@@ -1977,9 +1977,9 @@ long_hash(PyLongObject *v)
1977
i = -(i);
1978
}
1979
#define LONG_BIT_PyLong_SHIFT (8*sizeof(long) - PyLong_SHIFT)
1980
- /* The following loop produces a C long x such that x is congruent to
1981
- the absolute value of v modulo ULONG_MAX. The resulting x is
1982
- nonzero if and only if v is. */
+ /* The following loop produces a C unsigned long x such that x is
+ congruent to the absolute value of v modulo ULONG_MAX. The
+ resulting x is nonzero if and only if v is. */
1983
while (--i >= 0) {
1984
/* Force a native long #-bits (32 or 64) circular shift */
1985
x = ((x << PyLong_SHIFT) & ~PyLong_MASK) |
0 commit comments