summaryrefslogtreecommitdiffstats
path: root/Modules/_testbuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_testbuffer.c')
-rw-r--r--Modules/_testbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testbuffer.c b/Modules/_testbuffer.c
index 344d06d..b1b8ff3 100644
--- a/Modules/_testbuffer.c
+++ b/Modules/_testbuffer.c
@@ -2038,7 +2038,7 @@ static PyObject *
ndarray_get_readonly(NDArrayObject *self, void *closure)
{
Py_buffer *base = &self->head->base;
- return PyLong_FromLong(base->readonly);
+ return PyBool_FromLong(base->readonly);
}
static PyObject *