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
a103b96a
Commit
a103b96a
authored
May 16, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows.
parent
5cdc6308
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
Misc/NEWS
Misc/NEWS
+3
-0
Modules/_bisectmodule.c
Modules/_bisectmodule.c
+2
-1
Objects/rangeobject.c
Objects/rangeobject.c
+1
-1
No files found.
Misc/NEWS
View file @
a103b96a
...
...
@@ -63,6 +63,9 @@ Core and Builtins
Library
-------
- Issue #14829: Fix bisect and range() indexing with large indices
(>= 2 ** 32) under 64-bit Windows.
- Issue #14777: tkinter may return undecoded UTF-8 bytes as a string when
accessing the Tk clipboard. Modify clipboad_get() to first request type
UTF8_STRING when no specific type is requested in an X11 windowing
...
...
Modules/_bisectmodule.c
View file @
a103b96a
...
...
@@ -3,6 +3,7 @@
Converted to C by Dmitry Vasiliev (dima at hlabs.spb.ru).
*/
#define PY_SSIZE_T_CLEAN
#include "Python.h"
static
Py_ssize_t
...
...
@@ -192,7 +193,7 @@ insort_left(PyObject *self, PyObject *args, PyObject *kw)
if
(
PyList_Insert
(
list
,
index
,
item
)
<
0
)
return
NULL
;
}
else
{
result
=
PyObject_CallMethod
(
list
,
"insert"
,
"
i
O"
,
index
,
item
);
result
=
PyObject_CallMethod
(
list
,
"insert"
,
"
n
O"
,
index
,
item
);
if
(
result
==
NULL
)
return
NULL
;
Py_DECREF
(
result
);
...
...
Objects/rangeobject.c
View file @
a103b96a
...
...
@@ -307,7 +307,7 @@ compute_range_item(rangeobject *r, PyObject *arg)
static
PyObject
*
range_item
(
rangeobject
*
r
,
Py_ssize_t
i
)
{
PyObject
*
res
,
*
arg
=
PyLong_From
Long
(
i
);
PyObject
*
res
,
*
arg
=
PyLong_From
Ssize_t
(
i
);
if
(
!
arg
)
{
return
NULL
;
}
...
...
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