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
2fdd58ad
Kaydet (Commit)
2fdd58ad
authored
Agu 28, 2009
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Silence gcc 'comparison always false' warning
üst
f7cda528
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
stringobject.c
Objects/stringobject.c
+3
-1
unicodeobject.c
Objects/unicodeobject.c
+3
-1
No files found.
Objects/stringobject.c
Dosyayı görüntüle @
2fdd58ad
...
...
@@ -4341,14 +4341,16 @@ formatfloat(char *buf, size_t buflen, int flags,
}
if
(
prec
<
0
)
prec
=
6
;
#if SIZEOF_INT > 4
/* make sure that the decimal representation of precision really does
need at most 10 digits: platforms with sizeof(int) == 8 exist! */
if
(
prec
>
0x7fffffff
L
)
{
if
(
prec
>
0x7fffffff
)
{
PyErr_SetString
(
PyExc_OverflowError
,
"outrageously large precision "
"for formatted float"
);
return
-
1
;
}
#endif
if
(
type
==
'f'
&&
fabs
(
x
)
>=
1e50
)
type
=
'g'
;
...
...
Objects/unicodeobject.c
Dosyayı görüntüle @
2fdd58ad
...
...
@@ -8325,14 +8325,16 @@ formatfloat(Py_UNICODE *buf,
return
-
1
;
if
(
prec
<
0
)
prec
=
6
;
#if SIZEOF_INT > 4
/* make sure that the decimal representation of precision really does
need at most 10 digits: platforms with sizeof(int) == 8 exist! */
if
(
prec
>
0x7fffffff
L
)
{
if
(
prec
>
0x7fffffff
)
{
PyErr_SetString
(
PyExc_OverflowError
,
"outrageously large precision "
"for formatted float"
);
return
-
1
;
}
#endif
if
(
type
==
'f'
&&
fabs
(
x
)
>=
1e50
)
type
=
'g'
;
...
...
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