From 909be5a7f4d1d22d8eb4f7c6c130d01c37f8f935 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 7 Feb 2003 19:46:44 +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) --- Modules/mmapmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3