diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-10-26 22:19:25 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-10-26 22:19:25 +0000 |
commit | 623c64fa473cdea90ef332a1a0b2fe759e3de215 (patch) | |
tree | c85dadfdca3fb8da79f1730247367d6f53d01316 /numpy/core/src | |
parent | 0dbf6c323e2bf49fd8a6c31b805807c92a983650 (diff) | |
download | numpy-623c64fa473cdea90ef332a1a0b2fe759e3de215.tar.gz |
Fix label problem on wide builds.
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/scalartypes.inc.src | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/core/src/scalartypes.inc.src b/numpy/core/src/scalartypes.inc.src index 3371722d1..244d73ebe 100644 --- a/numpy/core/src/scalartypes.inc.src +++ b/numpy/core/src/scalartypes.inc.src @@ -1299,13 +1299,17 @@ gentype_reduce(PyObject *self, PyObject *args) 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)); - fail: #ifndef Py_UNICODE_WIDE + fail: if (alloc) _pya_free((char *)buffer); #endif } |