summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-08-21 18:44:09 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-08-21 18:44:09 (GMT)
commit47f0ffa7ee22a58802e206780a563997df1cc326 (patch)
tree6dbee68262ef40f62418d7214cbc64ff8eaff819 /Objects
parent7443b80549ad7d74c22d94e953ebe89137037f08 (diff)
downloadcpython-47f0ffa7ee22a58802e206780a563997df1cc326.zip
cpython-47f0ffa7ee22a58802e206780a563997df1cc326.tar.gz
cpython-47f0ffa7ee22a58802e206780a563997df1cc326.tar.bz2
Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev
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 71ba01b..5249f1c 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -922,7 +922,7 @@ file_readinto(PyFileObject *f, PyObject *args)
ndone += nnow;
ntodo -= nnow;
}
- return PyInt_FromLong((long)ndone);
+ return PyInt_FromSsize_t(ndone);
}
/**************************************************************************