commit | 47f0ffa7ee22a58802e206780a563997df1cc326 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Mon Aug 21 18:44:09 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Mon Aug 21 18:44:09 2006 +0000 |
tree | 6dbee68262ef40f62418d7214cbc64ff8eaff819 | |
parent | 7443b80549ad7d74c22d94e953ebe89137037f08 [diff] [blame] |
Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 73871ac..b8dd02d 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c
@@ -470,7 +470,7 @@ mmap_tell_method(mmap_object *self, PyObject *unused) { CHECK_VALID(NULL); - return PyInt_FromLong((long) self->pos); + return PyInt_FromSsize_t(self->pos); } static PyObject *