diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-07 19:44:56 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-07 19:44:56 (GMT) |
commit | 4d933fe392c683990f6c73f4ce23bc845a896b79 (patch) | |
tree | f8a8c13cd6432ff574d70c7ed520f90cf72ecdc2 /Modules/mmapmodule.c | |
parent | 1dca482dbdd42fc9a81cab1ae2f04471511c338d (diff) | |
download | cpython-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/mmapmodule.c')
-rw-r--r-- | Modules/mmapmodule.c | 2 |
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); |