[Numpy-svn] r6470 - branches/1.2.x/numpy/core/src
numpy-svn at scipy.org
numpy-svn at scipy.org
Wed Feb 25 08:45:54 EST 2009
Author: oliphant
Date: 2009-02-25 07:45:53 -0600 (Wed, 25 Feb 2009)
New Revision: 6470
Modified:
branches/1.2.x/numpy/core/src/scalartypes.inc.src
Log:
Add Error checking to 1.2.x branch
Modified: branches/1.2.x/numpy/core/src/scalartypes.inc.src
===================================================================
--- branches/1.2.x/numpy/core/src/scalartypes.inc.src 2009-02-25 13:45:30 UTC (rev 6469)
+++ branches/1.2.x/numpy/core/src/scalartypes.inc.src 2009-02-25 13:45:53 UTC (rev 6470)
@@ -1214,6 +1214,7 @@
PyObject *ret, *newargs;
newargs = PyTuple_GetSlice(args, 0, 2);
+ if (newargs == NULL) return NULL;
ret = gentype_generic_method((PyObject *)self, newargs, kwds, "getfield");
Py_DECREF(newargs);
if (!ret) return ret;
More information about the Numpy-svn
mailing list