From: Neal Norwitz Date: Fri, 7 Feb 2003 19:46:44 +0000 (+0000) Subject: SF patch #682514, mmapmodule.c write fix for LP64 executables X-Git-Tag: v2.2.3c1~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=909be5a7f4d1d22d8eb4f7c6c130d01c37f8f935;p=thirdparty%2FPython%2Fcpython.git SF patch #682514, mmapmodule.c write fix for LP64 executables Make length an int so we get the right value from PyArg_ParseTuple(args, "s#", &str, &length) --- diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 9af90c19c93d..c72e4d5a2295 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -292,7 +292,7 @@ static PyObject * mmap_write_method(mmap_object *self, PyObject *args) { - long length; + int length; char *data; CHECK_VALID(NULL);