[pypy-commit] pypy cpyext-old-buffers: Windows support
arigo
pypy.commits at gmail.com
Sat May 28 03:31:59 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: cpyext-old-buffers
Changeset: r84776:de63a9138e87
Date: 2016-05-28 09:30 +0200
http://bitbucket.org/pypy/pypy/changeset/de63a9138e87/
Log: Windows support
diff --git a/pypy/module/cpyext/test/test_abstract.py b/pypy/module/cpyext/test/test_abstract.py
--- a/pypy/module/cpyext/test/test_abstract.py
+++ b/pypy/module/cpyext/test/test_abstract.py
@@ -38,9 +38,9 @@
"""
void *ptr;
Py_ssize_t size;
+ Py_ssize_t i;
if (PyObject_AsWriteBuffer(args, &ptr, &size) < 0)
return NULL;
- Py_ssize_t i;
for (i = 0; i < size; i++) {
((char*)ptr)[i] = 0;
}
More information about the pypy-commit
mailing list