Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a47af9cf
Commit
a47af9cf
authored
Jun 24, 2009
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix comment
parent
ad195567
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Objects/rangeobject.c
Objects/rangeobject.c
+4
-5
No files found.
Objects/rangeobject.c
View file @
a47af9cf
...
...
@@ -126,10 +126,9 @@ range_dealloc(rangeobject *r)
PyObject_Del
(
r
);
}
/* Return number of items in range (lo, hi, step), when arguments are
* PyInt or PyLong objects. step > 0 required. Return a value < 0 if
* & only if the true value is too large to fit in a signed long.
* Arguments MUST return 1 with either PyLong_Check() or
/* Return number of items in range (lo, hi, step), when arguments are PyLong
* objects. step > 0 required. Return a value < 0 if & only if the true
* value is too large to fit in a signed long. Arguments MUST return 1 with
* PyLong_Check(). Return -1 when there is an error.
*/
static
PyObject
*
...
...
@@ -137,7 +136,7 @@ range_length_obj(rangeobject *r)
{
/* -------------------------------------------------------------
Algorithm is equal to that of get_len_of_range(), but it operates
on PyObjects (which are assumed to be PyLong o
r PyInt o
bjects).
on PyObjects (which are assumed to be PyLong objects).
---------------------------------------------------------------*/
int
cmp_result
;
PyObject
*
lo
,
*
hi
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment