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
98ea54c3
Kaydet (Commit)
98ea54c3
authored
Agu 15, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22156: Fix "comparison between signed and unsigned integers" compiler
warnings in the Python/ subdirectory.
üst
eae94706
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
bltinmodule.c
Python/bltinmodule.c
+1
-1
getargs.c
Python/getargs.c
+2
-2
pythonrun.c
Python/pythonrun.c
+1
-1
thread.c
Python/thread.c
+1
-1
traceback.c
Python/traceback.c
+1
-1
No files found.
Python/bltinmodule.c
Dosyayı görüntüle @
98ea54c3
...
...
@@ -581,7 +581,7 @@ source_as_string(PyObject *cmd, char *funcname, char *what, PyCompilerFlags *cf)
return
NULL
;
}
if
(
strlen
(
str
)
!=
size
)
{
if
(
strlen
(
str
)
!=
(
size_t
)
size
)
{
PyErr_SetString
(
PyExc_TypeError
,
"source code string cannot contain null bytes"
);
return
NULL
;
...
...
Python/getargs.c
Dosyayı görüntüle @
98ea54c3
...
...
@@ -872,7 +872,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
STORE_SIZE
(
count
);
format
++
;
}
else
{
if
(
strlen
(
*
p
)
!=
count
)
if
(
strlen
(
*
p
)
!=
(
size_t
)
count
)
return
converterr
(
"bytes without null bytes"
,
arg
,
msgbuf
,
bufsize
);
...
...
@@ -994,7 +994,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
*
p
=
PyUnicode_AsUnicodeAndSize
(
arg
,
&
len
);
if
(
*
p
==
NULL
)
RETURN_ERR_OCCURRED
;
if
(
Py_UNICODE_strlen
(
*
p
)
!=
len
)
if
(
Py_UNICODE_strlen
(
*
p
)
!=
(
size_t
)
len
)
return
converterr
(
"str without null characters or None"
,
arg
,
msgbuf
,
bufsize
);
...
...
Python/pythonrun.c
Dosyayı görüntüle @
98ea54c3
...
...
@@ -1738,7 +1738,7 @@ print_error_text(PyObject *f, int offset, PyObject *text_obj)
return
;
if
(
offset
>=
0
)
{
if
(
offset
>
0
&&
offset
==
strlen
(
text
)
&&
text
[
offset
-
1
]
==
'\n'
)
if
(
offset
>
0
&&
(
size_t
)
offset
==
strlen
(
text
)
&&
text
[
offset
-
1
]
==
'\n'
)
offset
--
;
for
(;;)
{
nl
=
strchr
(
text
,
'\n'
);
...
...
Python/thread.c
Dosyayı görüntüle @
98ea54c3
...
...
@@ -431,7 +431,7 @@ PyThread_GetInfo(void)
&& defined(_CS_GNU_LIBPTHREAD_VERSION))
value
=
NULL
;
len
=
confstr
(
_CS_GNU_LIBPTHREAD_VERSION
,
buffer
,
sizeof
(
buffer
));
if
(
1
<
len
&&
len
<
sizeof
(
buffer
))
{
if
(
1
<
len
&&
(
size_t
)
len
<
sizeof
(
buffer
))
{
value
=
PyUnicode_DecodeFSDefaultAndSize
(
buffer
,
len
-
1
);
if
(
value
==
NULL
)
PyErr_Clear
();
...
...
Python/traceback.c
Dosyayı görüntüle @
98ea54c3
...
...
@@ -198,7 +198,7 @@ _Py_FindSourceFile(PyObject *filename, char* namebuf, size_t namelen, PyObject *
}
strcpy
(
namebuf
,
PyBytes_AS_STRING
(
path
));
Py_DECREF
(
path
);
if
(
strlen
(
namebuf
)
!=
len
)
if
(
strlen
(
namebuf
)
!=
(
size_t
)
len
)
continue
;
/* v contains '\0' */
if
(
len
>
0
&&
namebuf
[
len
-
1
]
!=
SEP
)
namebuf
[
len
++
]
=
SEP
;
...
...
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