[pypy-commit] pypy memoryview-attributes: removed semicolon after if which made the next statement executed all the time (test did not compile .so file because all warnings are treated as errors)

plan_rich pypy.commits at gmail.com
Thu Aug 18 06:47:16 EDT 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: memoryview-attributes
Changeset: r86271:32b804646e13
Date: 2016-08-18 12:46 +0200
http://bitbucket.org/pypy/pypy/changeset/32b804646e13/

Log:	removed semicolon after if which made the next statement executed
	all the time (test did not compile .so file because all warnings are
	treated as errors)

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
@@ -61,8 +61,9 @@
 PyMyArray_init(PyMyArray *self, PyObject *args, PyObject *kwds)
 {
     // init may have already been called
-    if (self->arr.arr != NULL);
+    if (self->arr.arr != NULL) {
         deallocate_MyArray(&self->arr);
+    }
 
     int length = 0;
     static char *kwlist[] = {"length", NULL};


More information about the pypy-commit mailing list