[Numpy-svn] r5427 - branches/1.1.x/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Tue Jul 15 22:15:30 CDT 2008


Author: charris
Date: 2008-07-15 22:15:22 -0500 (Tue, 15 Jul 2008)
New Revision: 5427

Modified:
   branches/1.1.x/numpy/core/src/ufuncobject.c
Log:
Backport r5312 by copying _has_reflected_op from trunk.


Modified: branches/1.1.x/numpy/core/src/ufuncobject.c
===================================================================
--- branches/1.1.x/numpy/core/src/ufuncobject.c	2008-07-16 03:10:52 UTC (rev 5426)
+++ branches/1.1.x/numpy/core/src/ufuncobject.c	2008-07-16 03:15:22 UTC (rev 5427)
@@ -1285,22 +1285,23 @@
 static int
 _has_reflected_op(PyObject *op, char *name)
 {
-    _GETATTR_(add, radd)
-        _GETATTR_(subtract, rsub)
-        _GETATTR_(multiply, rmul)
-        _GETATTR_(divide, rdiv)
-        _GETATTR_(true_divide, rtruediv)
-        _GETATTR_(floor_divide, rfloordiv)
-        _GETATTR_(remainder, rmod)
-        _GETATTR_(power, rpow)
-        _GETATTR_(left_shift, rrlshift)
-        _GETATTR_(right_shift, rrshift)
-        _GETATTR_(bitwise_and, rand)
-        _GETATTR_(bitwise_xor, rxor)
-        _GETATTR_(bitwise_or, ror)
-        return 0;
+    _GETATTR_(add, radd);
+    _GETATTR_(subtract, rsub);
+    _GETATTR_(multiply, rmul);
+    _GETATTR_(divide, rdiv);
+    _GETATTR_(true_divide, rtruediv);
+    _GETATTR_(floor_divide, rfloordiv);
+    _GETATTR_(remainder, rmod);
+    _GETATTR_(power, rpow);
+    _GETATTR_(left_shift, rlshift);
+    _GETATTR_(right_shift, rrshift);
+    _GETATTR_(bitwise_and, rand);
+    _GETATTR_(bitwise_xor, rxor);
+    _GETATTR_(bitwise_or, ror);
+    return 0;
 }
 
+
 #undef _GETATTR_
 
 static Py_ssize_t



More information about the Numpy-svn mailing list