mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
casts for picky compilers.
This commit is contained in:
parent
cbf8906f5d
commit
ff1ccbfc21
3 changed files with 4 additions and 3 deletions
|
@ -512,7 +512,7 @@ file_read(f, args)
|
|||
if (!PyArg_ParseTuple(args, "|l", &bytesrequested))
|
||||
return NULL;
|
||||
if (bytesrequested < 0)
|
||||
buffersize = new_buffersize(f, 0);
|
||||
buffersize = new_buffersize(f, (size_t)0);
|
||||
else
|
||||
buffersize = bytesrequested;
|
||||
v = PyString_FromStringAndSize((char *)NULL, buffersize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue