[Python-checkins] CVS: python/dist/src/Objects rangeobject.c,2.20,2.21
Fred L. Drake
python-dev@python.org
Wed, 8 Nov 2000 10:37:07 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/Demo/threads Coroutine.py,NONE,1.1 fcmp.py,NONE,1.1 squasher.py,NONE,1.1 README,1.7,1.8
- Next message: [Python-checkins] CVS: python/dist/src/Objects rangeobject.c,2.21,2.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv3195/Objects
Modified Files:
rangeobject.c
Log Message:
In the containment test, get the boundary condition right. ">" was used
where ">=" should have been.
This closes bug #121965.
Index: rangeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/rangeobject.c,v
retrieving revision 2.20
retrieving revision 2.21
diff -C2 -r2.20 -r2.21
*** rangeobject.c 2000/09/01 23:29:27 2.20
--- rangeobject.c 2000/11/08 18:37:05 2.21
***************
*** 194,200 ****
return -1;
! if (num < r->start || (num - r->start) % r->step)
return 0;
! if (num > (r->start + (r->len * r->step)))
return 0;
return 1;
--- 194,200 ----
return -1;
! if ((num < r->start) || ((num - r->start) % r->step))
return 0;
! if (num >= (r->start + (r->len * r->step)))
return 0;
return 1;
- Previous message: [Python-checkins] CVS: python/dist/src/Demo/threads Coroutine.py,NONE,1.1 fcmp.py,NONE,1.1 squasher.py,NONE,1.1 README,1.7,1.8
- Next message: [Python-checkins] CVS: python/dist/src/Objects rangeobject.c,2.21,2.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]