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
1ac745b5
Kaydet (Commit)
1ac745b5
authored
Tem 11, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #7616: Fix copying of overlapping memoryview slices with the Intel
compiler.
üst
349d558e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
NEWS
Misc/NEWS
+3
-0
memoryobject.c
Objects/memoryobject.c
+3
-11
No files found.
Misc/NEWS
Dosyayı görüntüle @
1ac745b5
...
...
@@ -12,6 +12,9 @@ What's New in Python 3.2 Alpha 1?
Core and Builtins
-----------------
- Issue #7616: Fix copying of overlapping memoryview slices with the Intel
compiler.
- Issue #8413: structsequence now subclasses tuple.
- Issue #8271: during the decoding of an invalid UTF-8 byte sequence, only the
...
...
Objects/memoryobject.c
Dosyayı görüntüle @
1ac745b5
...
...
@@ -624,7 +624,7 @@ memory_subscript(PyMemoryViewObject *self, PyObject *key)
static
int
memory_ass_sub
(
PyMemoryViewObject
*
self
,
PyObject
*
key
,
PyObject
*
value
)
{
Py_ssize_t
start
,
len
,
bytelen
,
i
;
Py_ssize_t
start
,
len
,
bytelen
;
Py_buffer
srcview
;
Py_buffer
*
view
=
&
(
self
->
view
);
char
*
srcbuf
,
*
destbuf
;
...
...
@@ -694,16 +694,8 @@ memory_ass_sub(PyMemoryViewObject *self, PyObject *key, PyObject *value)
if
(
destbuf
+
bytelen
<
srcbuf
||
srcbuf
+
bytelen
<
destbuf
)
/* No overlapping */
memcpy
(
destbuf
,
srcbuf
,
bytelen
);
else
if
(
destbuf
<
srcbuf
)
{
/* Copy in ascending order */
for
(
i
=
0
;
i
<
bytelen
;
i
++
)
destbuf
[
i
]
=
srcbuf
[
i
];
}
else
{
/* Copy in descencing order */
for
(
i
=
bytelen
-
1
;
i
>=
0
;
i
--
)
destbuf
[
i
]
=
srcbuf
[
i
];
}
else
memmove
(
destbuf
,
srcbuf
,
bytelen
);
PyBuffer_Release
(
&
srcview
);
return
0
;
...
...
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