r51437 - in python/branches/release25-maint: Modules/mmapmodule.c Objects/fileobject.c
Author: neal.norwitz Date: Mon Aug 21 20:44:09 2006 New Revision: 51437 Modified: python/branches/release25-maint/Modules/mmapmodule.c python/branches/release25-maint/Objects/fileobject.c Log: Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev Modified: python/branches/release25-maint/Modules/mmapmodule.c ============================================================================== --- python/branches/release25-maint/Modules/mmapmodule.c (original) +++ python/branches/release25-maint/Modules/mmapmodule.c Mon Aug 21 20:44:09 2006 @@ -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 * Modified: python/branches/release25-maint/Objects/fileobject.c ============================================================================== --- python/branches/release25-maint/Objects/fileobject.c (original) +++ python/branches/release25-maint/Objects/fileobject.c Mon Aug 21 20:44:09 2006 @@ -922,7 +922,7 @@ ndone += nnow; ntodo -= nnow; } - return PyInt_FromLong((long)ndone); + return PyInt_FromSsize_t(ndone); } /**************************************************************************
participants (1)
-
neal.norwitz