Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
a103b96a
Kaydet (Commit)
a103b96a
authored
May 16, 2012
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows.
üst
5cdc6308
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
NEWS
Misc/NEWS
+3
-0
_bisectmodule.c
Modules/_bisectmodule.c
+2
-1
rangeobject.c
Objects/rangeobject.c
+1
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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