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

Will backport.

Modules/mmapmodule.c

index f1df4dcab2889f2ede685e63b41f0392bebcdec5..fcec0de391000df0682423faabb0a0a374282a30 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);