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
e73cbe7a
Kaydet (Commit)
e73cbe7a
authored
Nis 26, 2009
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix typo in function name
üst
4c69da28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pystrtod.c
Python/pystrtod.c
+3
-3
No files found.
Python/pystrtod.c
Dosyayı görüntüle @
e73cbe7a
...
...
@@ -291,7 +291,7 @@ as necessary to represent the exponent.
/* Ensure that any exponent, if present, is at least MIN_EXPONENT_DIGITS
in length. */
Py_LOCAL_INLINE
(
void
)
ensure_min
umi
m_exponent_length
(
char
*
buffer
,
size_t
buf_size
)
ensure_min
imu
m_exponent_length
(
char
*
buffer
,
size_t
buf_size
)
{
char
*
p
=
strpbrk
(
buffer
,
"eE"
);
if
(
p
&&
(
*
(
p
+
1
)
==
'-'
||
*
(
p
+
1
)
==
'+'
))
{
...
...
@@ -498,7 +498,7 @@ PyOS_ascii_formatd(char *buffer,
for the extra zeros. Also, if there are more than
MIN_EXPONENT_DIGITS, remove as many zeros as possible until we get
back to MIN_EXPONENT_DIGITS */
ensure_min
umi
m_exponent_length
(
buffer
,
buf_size
);
ensure_min
imu
m_exponent_length
(
buffer
,
buf_size
);
/* If format_char is 'Z', make sure we have at least one character
after the decimal point (and make sure we have a decimal point). */
...
...
@@ -601,7 +601,7 @@ _PyOS_double_to_string(char *buf, size_t buf_len, double val,
enough for the extra zeros. Also, if there are more than
MIN_EXPONENT_DIGITS, remove as many zeros as possible until
we get back to MIN_EXPONENT_DIGITS */
ensure_min
umi
m_exponent_length
(
buf
,
buf_len
);
ensure_min
imu
m_exponent_length
(
buf
,
buf_len
);
/* Possibly make sure we have at least one character after the
decimal point (and make sure we have a decimal point). */
...
...
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