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
72270c22
Kaydet (Commit)
72270c22
authored
May 31, 2006
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Repaired error in new comment.
üst
d6a6f023
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
_struct.c
Modules/_struct.c
+4
-4
No files found.
Modules/_struct.c
Dosyayı görüntüle @
72270c22
...
@@ -311,10 +311,10 @@ _range_error(const formatdef *f, int is_unsigned)
...
@@ -311,10 +311,10 @@ _range_error(const formatdef *f, int is_unsigned)
/* ulargest is the largest unsigned value with f->size bytes.
/* ulargest is the largest unsigned value with f->size bytes.
* Note that the simpler:
* Note that the simpler:
* ((size_t)1 << (f->size * 8)) - 1
* ((size_t)1 << (f->size * 8)) - 1
* doesn't work when f->size == size
_t because C doesn't define wha
t
* doesn't work when f->size == size
of(size_t) because C doesn'
t
*
happens when a left shift count is >= the number of bits in the
*
define what happens when a left shift count is >= the number of
*
integer being shifted; e.g., on some boxes it doesn't shift a
t
*
bits in the integer being shifted; e.g., on some boxes it doesn'
t
* all when they're equal.
*
shift at
all when they're equal.
*/
*/
const
size_t
ulargest
=
(
size_t
)
-
1
>>
((
SIZEOF_SIZE_T
-
f
->
size
)
*
8
);
const
size_t
ulargest
=
(
size_t
)
-
1
>>
((
SIZEOF_SIZE_T
-
f
->
size
)
*
8
);
assert
(
f
->
size
>=
1
&&
f
->
size
<=
SIZEOF_SIZE_T
);
assert
(
f
->
size
>=
1
&&
f
->
size
<=
SIZEOF_SIZE_T
);
...
...
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