commit | 076d1e0c0b1858a9086c63c237cbe13691231b0f | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Mon Aug 21 18:20:10 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Mon Aug 21 18:20:10 2006 +0000 |
tree | 72925912b97695b66abc9e57ff048465697cf812 | |
parent | 87557cd72a75ee3d7e8c6a53ee01bab0bc6ec73a [diff] [blame] |
Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev
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 @@ ndone += nnow; ntodo -= nnow; } - return PyInt_FromLong((long)ndone); + return PyInt_FromSsize_t(ndone); } /**************************************************************************