From 4d933fe392c683990f6c73f4ce23bc845a896b79 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 7 Feb 2003 19:44:56 +0000 Subject: [PATCH] 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) Will backport. --- Modules/mmapmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index f1df4dcab28..fcec0de3910 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);