mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
parent
dff3a37afd
commit
1bc8fab0e7
2 changed files with 2 additions and 2 deletions
|
@ -473,7 +473,7 @@ static size_t
|
|||
new_buffersize(PyFileObject *f, size_t currentsize)
|
||||
{
|
||||
#ifdef HAVE_FSTAT
|
||||
long pos, end;
|
||||
off_t pos, end;
|
||||
struct stat st;
|
||||
if (fstat(fileno(f->f_fp), &st) == 0) {
|
||||
end = st.st_size;
|
||||
|
|
|
@ -645,7 +645,7 @@ int_lshift(PyIntObject *v, PyIntObject *w)
|
|||
if (b >= LONG_BIT) {
|
||||
return PyInt_FromLong(0L);
|
||||
}
|
||||
a = (unsigned long)a << b;
|
||||
a = (long)((unsigned long)a << b);
|
||||
return PyInt_FromLong(a);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue