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
1 changed files with 1 additions and 1 deletions

View File

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