[Numpy-svn] r4316 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Fri Oct 26 17:19:31 CDT 2007


Author: oliphant
Date: 2007-10-26 17:19:25 -0500 (Fri, 26 Oct 2007)
New Revision: 4316

Modified:
   trunk/numpy/core/src/scalartypes.inc.src
Log:
Fix label problem on wide builds.

Modified: trunk/numpy/core/src/scalartypes.inc.src
===================================================================
--- trunk/numpy/core/src/scalartypes.inc.src	2007-10-26 21:44:47 UTC (rev 4315)
+++ trunk/numpy/core/src/scalartypes.inc.src	2007-10-26 22:19:25 UTC (rev 4316)
@@ -1299,13 +1299,17 @@
                 mod = PyString_FromStringAndSize(buffer, buflen);
 		if (mod == NULL) {
 			Py_DECREF(ret);
+#ifndef Py_UNICODE_WIDE
 			ret = NULL;
 			goto fail;
+#else
+			return NULL;
+#endif
 		}
                 PyTuple_SET_ITEM(ret, 1,
                                  Py_BuildValue("NN", obj, mod));
+#ifndef Py_UNICODE_WIDE
 	fail:
-#ifndef Py_UNICODE_WIDE
 		if (alloc) _pya_free((char *)buffer);
 #endif
         }



More information about the Numpy-svn mailing list