summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-07 13:24:13 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-07 13:24:13 (GMT)
commit2ccaf6f2f9d62828b3ea34720de27e758a673e17 (patch)
treecc2f8eaffd0d1a39b3427034bc831c15452757ae /Objects
parentd832f9e4253c5ca2a7660725b12697b4619e3716 (diff)
downloadcpython-2ccaf6f2f9d62828b3ea34720de27e758a673e17.zip
cpython-2ccaf6f2f9d62828b3ea34720de27e758a673e17.tar.gz
cpython-2ccaf6f2f9d62828b3ea34720de27e758a673e17.tar.bz2
Remove a redundant check from list_slice() and list_ass_slice().
Noted by Greg Stein.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/listobject.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 4e9ad0c..f2c295e 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -326,8 +326,6 @@ list_slice(a, ilow, ihigh)
ilow = 0;
else if (ilow > a->ob_size)
ilow = a->ob_size;
- if (ihigh < 0)
- ihigh = 0;
if (ihigh < ilow)
ihigh = ilow;
else if (ihigh > a->ob_size)
@@ -452,8 +450,6 @@ list_ass_slice(a, ilow, ihigh, v)
ilow = 0;
else if (ilow > a->ob_size)
ilow = a->ob_size;
- if (ihigh < 0)
- ihigh = 0;
if (ihigh < ilow)
ihigh = ilow;
else if (ihigh > a->ob_size)