Author: Richard Plangger <[email protected]>
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};
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to