mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
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:
parent
1dca482dbd
commit
4d933fe392
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue