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
9fa2c116
Kaydet (Commit)
9fa2c116
authored
Şub 10, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use Py_CHARMASK; and don't check for neg. float to the float power here
üst
2497eada
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
+8
-12
floatobject.c
Objects/floatobject.c
+1
-5
longobject.c
Objects/longobject.c
+2
-2
stringobject.c
Objects/stringobject.c
+5
-5
No files found.
Objects/floatobject.c
Dosyayı görüntüle @
9fa2c116
...
@@ -136,7 +136,7 @@ float_buf_repr(buf, v)
...
@@ -136,7 +136,7 @@ float_buf_repr(buf, v)
for
(;
*
cp
!=
'\0'
;
cp
++
)
{
for
(;
*
cp
!=
'\0'
;
cp
++
)
{
/* Any non-digit means it's not an integer;
/* Any non-digit means it's not an integer;
this takes care of NAN and INF as well. */
this takes care of NAN and INF as well. */
if
(
!
isdigit
(
*
cp
))
if
(
!
isdigit
(
Py_CHARMASK
(
*
cp
)
))
break
;
break
;
}
}
if
(
*
cp
==
'\0'
)
{
if
(
*
cp
==
'\0'
)
{
...
@@ -330,10 +330,6 @@ float_pow(v, w, z)
...
@@ -330,10 +330,6 @@ float_pow(v, w, z)
}
}
return
newfloatobject
(
0
.
0
);
return
newfloatobject
(
0
.
0
);
}
}
if
(
iv
<
0
.
0
)
{
err_setstr
(
ValueError
,
"negative float to float power"
);
return
NULL
;
}
errno
=
0
;
errno
=
0
;
ix
=
pow
(
iv
,
iw
);
ix
=
pow
(
iv
,
iw
);
CHECK
(
ix
);
CHECK
(
ix
);
...
...
Objects/longobject.c
Dosyayı görüntüle @
9fa2c116
...
@@ -377,7 +377,7 @@ long_escan(str, pend, base)
...
@@ -377,7 +377,7 @@ long_escan(str, pend, base)
err_setstr
(
ValueError
,
"invalid base for long literal"
);
err_setstr
(
ValueError
,
"invalid base for long literal"
);
return
NULL
;
return
NULL
;
}
}
while
(
*
str
!=
'\0'
&&
isspace
(
*
str
))
while
(
*
str
!=
'\0'
&&
isspace
(
Py_CHARMASK
(
*
str
)
))
str
++
;
str
++
;
if
(
*
str
==
'+'
)
if
(
*
str
==
'+'
)
++
str
;
++
str
;
...
@@ -385,7 +385,7 @@ long_escan(str, pend, base)
...
@@ -385,7 +385,7 @@ long_escan(str, pend, base)
++
str
;
++
str
;
sign
=
-
1
;
sign
=
-
1
;
}
}
while
(
*
str
!=
'\0'
&&
isspace
(
*
str
))
while
(
*
str
!=
'\0'
&&
isspace
(
Py_CHARMASK
(
*
str
)
))
str
++
;
str
++
;
if
(
base
==
0
)
{
if
(
base
==
0
)
{
if
(
str
[
0
]
!=
'0'
)
if
(
str
[
0
]
!=
'0'
)
...
...
Objects/stringobject.c
Dosyayı görüntüle @
9fa2c116
...
@@ -749,10 +749,10 @@ formatstring(format, args)
...
@@ -749,10 +749,10 @@ formatstring(format, args)
if
(
--
fmtcnt
>=
0
)
if
(
--
fmtcnt
>=
0
)
c
=
*
fmt
++
;
c
=
*
fmt
++
;
}
}
else
if
(
isdigit
(
c
))
{
else
if
(
c
>=
0
&&
isdigit
(
c
))
{
width
=
c
-
'0'
;
width
=
c
-
'0'
;
while
(
--
fmtcnt
>=
0
)
{
while
(
--
fmtcnt
>=
0
)
{
c
=
*
fmt
++
;
c
=
Py_CHARMASK
(
*
fmt
++
)
;
if
(
!
isdigit
(
c
))
if
(
!
isdigit
(
c
))
break
;
break
;
if
((
width
*
10
)
/
10
!=
width
)
{
if
((
width
*
10
)
/
10
!=
width
)
{
...
@@ -782,10 +782,10 @@ formatstring(format, args)
...
@@ -782,10 +782,10 @@ formatstring(format, args)
if
(
--
fmtcnt
>=
0
)
if
(
--
fmtcnt
>=
0
)
c
=
*
fmt
++
;
c
=
*
fmt
++
;
}
}
else
if
(
isdigit
(
c
))
{
else
if
(
c
>=
0
&&
isdigit
(
c
))
{
prec
=
c
-
'0'
;
prec
=
c
-
'0'
;
while
(
--
fmtcnt
>=
0
)
{
while
(
--
fmtcnt
>=
0
)
{
c
=
*
fmt
++
;
c
=
Py_CHARMASK
(
*
fmt
++
)
;
if
(
!
isdigit
(
c
))
if
(
!
isdigit
(
c
))
break
;
break
;
if
((
prec
*
10
)
/
10
!=
prec
)
{
if
((
prec
*
10
)
/
10
!=
prec
)
{
...
@@ -913,7 +913,7 @@ formatstring(format, args)
...
@@ -913,7 +913,7 @@ formatstring(format, args)
--
rescnt
;
--
rescnt
;
*
res
++
=
' '
;
*
res
++
=
' '
;
}
}
if
(
dict
&&
(
argidx
<
arglen
))
{
if
(
dict
&&
(
argidx
<
arglen
)
&&
c
!=
'%'
)
{
err_setstr
(
TypeError
,
err_setstr
(
TypeError
,
"not all arguments converted"
);
"not all arguments converted"
);
goto
error
;
goto
error
;
...
...
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