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
a2a6477b
Kaydet (Commit)
a2a6477b
authored
Eki 11, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix io.FileIO.readall() on Windows 64 bits
Use Py_off_t type (64 bits) instead of off_t (32 bits).
üst
2c5d3cbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fileio.c
Modules/_io/fileio.c
+4
-4
No files found.
Modules/_io/fileio.c
Dosyayı görüntüle @
a2a6477b
...
...
@@ -552,12 +552,12 @@ fileio_readinto(fileio *self, PyObject *args)
static
size_t
new_buffersize
(
fileio
*
self
,
size_t
currentsize
#ifdef HAVE_FSTAT
,
off_t
pos
,
off_t
end
,
Py_off_t
pos
,
Py_
off_t
end
#endif
)
{
#ifdef HAVE_FSTAT
if
(
end
!=
(
off_t
)
-
1
)
{
if
(
end
!=
(
Py_
off_t
)
-
1
)
{
/* Files claiming a size smaller than SMALLCHUNK may
actually be streaming pseudo-files. In this case, we
apply the more aggressive algorithm below.
...
...
@@ -584,7 +584,7 @@ fileio_readall(fileio *self)
{
#ifdef HAVE_FSTAT
struct
stat
st
;
off_t
pos
,
end
;
Py_
off_t
pos
,
end
;
#endif
PyObject
*
result
;
Py_ssize_t
total
=
0
;
...
...
@@ -609,7 +609,7 @@ fileio_readall(fileio *self)
if
(
fstat
(
self
->
fd
,
&
st
)
==
0
)
end
=
st
.
st_size
;
else
end
=
(
off_t
)
-
1
;
end
=
(
Py_
off_t
)
-
1
;
#endif
while
(
1
)
{
#ifdef HAVE_FSTAT
...
...
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