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
473e0e4d
Kaydet (Commit)
473e0e4d
authored
Eyl 10, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed compiler warnings in compact dict implementation on 32-bit platforms.
üst
b0d497c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
dictobject.c
Objects/dictobject.c
+11
-11
No files found.
Objects/dictobject.c
Dosyayı görüntüle @
473e0e4d
...
...
@@ -326,16 +326,16 @@ dk_get_index(PyDictKeysObject *keys, Py_ssize_t i)
int16_t
*
indices
=
keys
->
dk_indices
.
as_2
;
ix
=
indices
[
i
];
}
else
if
(
s
<=
0xffffffff
)
{
int32_t
*
indices
=
keys
->
dk_indices
.
as_4
;
ix
=
indices
[
i
];
}
#if SIZEOF_VOID_P > 4
else
{
else
if
(
s
>
0xffffffff
)
{
int64_t
*
indices
=
keys
->
dk_indices
.
as_8
;
ix
=
indices
[
i
];
}
#endif
else
{
int32_t
*
indices
=
keys
->
dk_indices
.
as_4
;
ix
=
indices
[
i
];
}
assert
(
ix
>=
DKIX_DUMMY
);
return
ix
;
}
...
...
@@ -358,17 +358,17 @@ dk_set_index(PyDictKeysObject *keys, Py_ssize_t i, Py_ssize_t ix)
assert
(
ix
<=
0x7fff
);
indices
[
i
]
=
(
int16_t
)
ix
;
}
else
if
(
s
<=
0xffffffff
)
{
int32_t
*
indices
=
keys
->
dk_indices
.
as_4
;
assert
(
ix
<=
0x7fffffff
);
indices
[
i
]
=
(
int32_t
)
ix
;
}
#if SIZEOF_VOID_P > 4
else
{
else
if
(
s
>
0xffffffff
)
{
int64_t
*
indices
=
keys
->
dk_indices
.
as_8
;
indices
[
i
]
=
ix
;
}
#endif
else
{
int32_t
*
indices
=
keys
->
dk_indices
.
as_4
;
assert
(
ix
<=
0x7fffffff
);
indices
[
i
]
=
(
int32_t
)
ix
;
}
}
...
...
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