]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF patch #682514, mmapmodule.c write fix for LP64 executables
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 7 Feb 2003 19:46:44 +0000 (19:46 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 7 Feb 2003 19:46:44 +0000 (19:46 +0000)
Make length an int so we get the right value from
PyArg_ParseTuple(args, "s#", &str, &length)

Modules/mmapmodule.c

index 9af90c19c93d5078e9ac47015d333014f7de157b..c72e4d5a2295ca86a5a1c6dc4cfb621dd3769090 100644 (file)
@@ -292,7 +292,7 @@ static PyObject *
 mmap_write_method(mmap_object *self,
                  PyObject *args)
 {
-       long length;
+       int length;
        char *data;
 
        CHECK_VALID(NULL);