File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -552,12 +552,12 @@ fileio_readinto(fileio *self, PyObject *args)
552552static size_t
553553new_buffersize (fileio * self , size_t currentsize
554554#ifdef HAVE_FSTAT
555- , off_t pos , off_t end
555+ , Py_off_t pos , Py_off_t end
556556#endif
557557 )
558558{
559559#ifdef HAVE_FSTAT
560- if (end != (off_t )- 1 ) {
560+ if (end != (Py_off_t )- 1 ) {
561561 /* Files claiming a size smaller than SMALLCHUNK may
562562 actually be streaming pseudo-files. In this case, we
563563 apply the more aggressive algorithm below.
@@ -584,7 +584,7 @@ fileio_readall(fileio *self)
584584{
585585#ifdef HAVE_FSTAT
586586 struct stat st ;
587- off_t pos , end ;
587+ Py_off_t pos , end ;
588588#endif
589589 PyObject * result ;
590590 Py_ssize_t total = 0 ;
@@ -609,7 +609,7 @@ fileio_readall(fileio *self)
609609 if (fstat (self -> fd , & st ) == 0 )
610610 end = st .st_size ;
611611 else
612- end = (off_t )- 1 ;
612+ end = (Py_off_t )- 1 ;
613613#endif
614614 while (1 ) {
615615#ifdef HAVE_FSTAT
You can’t perform that action at this time.
0 commit comments