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.
This commit is contained in:
Neal Norwitz 2003-02-07 19:44:56 +00:00
parent 1dca482dbd
commit 4d933fe392

View file

@ -292,7 +292,7 @@ static PyObject *
mmap_write_method(mmap_object *self, mmap_write_method(mmap_object *self,
PyObject *args) PyObject *args)
{ {
long length; int length;
char *data; char *data;
CHECK_VALID(NULL); CHECK_VALID(NULL);