summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-26 21:40:08 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-26 21:40:08 (GMT)
commita0eae0398c0b10ff3000e279e93e6eef83485ad0 (patch)
treebc96d73076e020e29a745aaed6e96214a1c15729
parent6ffa4a2a7d6c1e1149783d68bba5c05f835c2d61 (diff)
downloadcpython-a0eae0398c0b10ff3000e279e93e6eef83485ad0.zip
cpython-a0eae0398c0b10ff3000e279e93e6eef83485ad0.tar.gz
cpython-a0eae0398c0b10ff3000e279e93e6eef83485ad0.tar.bz2
Fix comment.
-rw-r--r--Objects/longobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index fdb5664..fdbda6b 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -1977,9 +1977,9 @@ long_hash(PyLongObject *v)
i = -(i);
}
#define LONG_BIT_PyLong_SHIFT (8*sizeof(long) - PyLong_SHIFT)
- /* The following loop produces a C 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. */
+ /* 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. */
while (--i >= 0) {
/* Force a native long #-bits (32 or 64) circular shift */
x = ((x << PyLong_SHIFT) & ~PyLong_MASK) |