summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorTravis E. Oliphant <oliphant@enthought.com>2007-10-13 21:03:27 (GMT)
committerTravis E. Oliphant <oliphant@enthought.com>2007-10-13 21:03:27 (GMT)
commitddacf968682818a34a90ec6702fbb44098914a9d (patch)
treef7f6ccb66009a525c1f8aa176626a8b95a516cef /Objects/abstract.c
parentd417a154e4fcae12fd17b160762eafe8eec6d3f5 (diff)
downloadcpython-ddacf968682818a34a90ec6702fbb44098914a9d.zip
cpython-ddacf968682818a34a90ec6702fbb44098914a9d.tar.gz
cpython-ddacf968682818a34a90ec6702fbb44098914a9d.tar.bz2
Eliminate use of PyBUF_CHARACTER flag which is no longer part of the buffer interface. Fix up array module to export the correct format for wide-builds.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 3d736d1..e848f8f 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -236,7 +236,7 @@ PyObject_AsCharBuffer(PyObject *obj,
"expected an object with the buffer interface");
return -1;
}
- if ((*pb->bf_getbuffer)(obj, &view, PyBUF_CHARACTER)) return -1;
+ if ((*pb->bf_getbuffer)(obj, &view, PyBUF_SIMPLE)) return -1;
*buffer = view.buf;
*buffer_len = view.len;