[pypy-commit] pypy memoryview-attributes: remove gcc warning/error on buildbot for cpyext test
plan_rich
pypy.commits at gmail.com
Mon Aug 22 04:58:40 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: memoryview-attributes
Changeset: r86400:73e384ef0911
Date: 2016-08-22 10:57 +0200
http://bitbucket.org/pypy/pypy/changeset/73e384ef0911/
Log: remove gcc warning/error on buildbot for cpyext test
diff --git a/pypy/module/cpyext/test/buffer_test.c b/pypy/module/cpyext/test/buffer_test.c
--- a/pypy/module/cpyext/test/buffer_test.c
+++ b/pypy/module/cpyext/test/buffer_test.c
@@ -15,9 +15,10 @@
/* initialize the array with integers 0...length */
void initialize_MyArray(MyArray* a, long length){
+ int i;
a->length = length;
a->arr = (int*)malloc(length * sizeof(int));
- for(int i=0; i<length; i++){
+ for(i=0; i<length; i++){
a->arr[i] = i;
}
}
More information about the pypy-commit
mailing list