summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-04-10 15:48:23 (GMT)
committerGuido van Rossum <guido@python.org>1999-04-10 15:48:23 (GMT)
commitff1ccbfc2172c564c6ca93113e1a1cf9a271f6ef (patch)
tree90e7a99262295be164c5b6bb021da86cf620b27b /Objects
parentcbf8906f5de5da29602f9fa7034488d2dca51663 (diff)
downloadcpython-ff1ccbfc2172c564c6ca93113e1a1cf9a271f6ef.zip
cpython-ff1ccbfc2172c564c6ca93113e1a1cf9a271f6ef.tar.gz
cpython-ff1ccbfc2172c564c6ca93113e1a1cf9a271f6ef.tar.bz2
casts for picky compilers.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 6d57aea..b0eb332 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -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);