Commit 2ccaf6f2 authored by Guido van Rossum's avatar Guido van Rossum

Remove a redundant check from list_slice() and list_ass_slice().

Noted by Greg Stein.
parent d832f9e4
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment