summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-07 19:44:56 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-07 19:44:56 (GMT)
commit4d933fe392c683990f6c73f4ce23bc845a896b79 (patch)
treef8a8c13cd6432ff574d70c7ed520f90cf72ecdc2 /Modules
parent1dca482dbdd42fc9a81cab1ae2f04471511c338d (diff)
downloadcpython-4d933fe392c683990f6c73f4ce23bc845a896b79.zip
cpython-4d933fe392c683990f6c73f4ce23bc845a896b79.tar.gz
cpython-4d933fe392c683990f6c73f4ce23bc845a896b79.tar.bz2
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mmapmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index f1df4dc..fcec0de 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);