[Python-checkins] r51434 - in python/trunk: Modules/mmapmodule.c Objects/fileobject.c
neal.norwitz
python-checkins at python.org
Mon Aug 21 20:20:13 CEST 2006
Author: neal.norwitz
Date: Mon Aug 21 20:20:10 2006
New Revision: 51434
Modified:
python/trunk/Modules/mmapmodule.c
python/trunk/Objects/fileobject.c
Log:
Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev
Modified: python/trunk/Modules/mmapmodule.c
==============================================================================
--- python/trunk/Modules/mmapmodule.c (original)
+++ python/trunk/Modules/mmapmodule.c Mon Aug 21 20:20:10 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/trunk/Objects/fileobject.c
==============================================================================
--- python/trunk/Objects/fileobject.c (original)
+++ python/trunk/Objects/fileobject.c Mon Aug 21 20:20:10 2006
@@ -922,7 +922,7 @@
ndone += nnow;
ntodo -= nnow;
}
- return PyInt_FromLong((long)ndone);
+ return PyInt_FromSsize_t(ndone);
}
/**************************************************************************
More information about the Python-checkins
mailing list