Kaydet (Commit) 50b6778b authored tarafından Kristján Valur Jónsson's avatar Kristján Valur Jónsson

Issue #10538. Put a reference to the source object in the Py_buffer when

converting the old buffer for PyArgs_ParseTuple with *s
üst 96cb5d15
...@@ -1410,7 +1410,7 @@ getbuffer(PyObject *arg, Py_buffer *view, char **errmsg) ...@@ -1410,7 +1410,7 @@ getbuffer(PyObject *arg, Py_buffer *view, char **errmsg)
*errmsg = "convertible to a buffer"; *errmsg = "convertible to a buffer";
return count; return count;
} }
PyBuffer_FillInfo(view, NULL, buf, count, 1, 0); PyBuffer_FillInfo(view, arg, buf, count, 1, 0);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment