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
964e02a9
Kaydet (Commit)
964e02a9
authored
May 25, 2006
tarafından
Bob Ippolito
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix test_float regression and 64-bit size mismatch issue
üst
955b64c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
_struct.c
Modules/_struct.c
+16
-2
No files found.
Modules/_struct.c
Dosyayı görüntüle @
964e02a9
...
...
@@ -1486,14 +1486,28 @@ init_struct(void)
other
=
lilendian_table
;
else
other
=
bigendian_table
;
/* Scan through the native table, find a matching
entry in the endian table and swap in the
native implementations whenever possible
(64-bit platforms may not have "standard" sizes) */
while
(
native
->
format
!=
'\0'
&&
other
->
format
!=
'\0'
)
{
ptr
=
other
;
while
(
ptr
->
format
!=
'\0'
)
{
if
(
ptr
->
format
==
native
->
format
)
{
ptr
->
pack
=
native
->
pack
;
ptr
->
unpack
=
native
->
unpack
;
/* Match faster when formats are
listed in the same order */
if
(
ptr
==
other
)
other
++
;
/* Only use the trick if the
size matches */
if
(
ptr
->
size
!=
native
->
size
)
break
;
/* Skip float and double, could be
"unknown" float format */
if
(
ptr
->
format
==
'd'
||
ptr
->
format
==
'f'
)
break
;
ptr
->
pack
=
native
->
pack
;
ptr
->
unpack
=
native
->
unpack
;
break
;
}
ptr
++
;
...
...
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