Borrow field descriptors for recarray dtype

This commit is contained in:
Ivan Smirnov 2016-06-19 16:40:52 +01:00
parent 8502f542b3
commit 80a3785a66
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ template <typename T> struct npy_format_descriptor
offsets.append(py::int_(field.offset));
if (!field.descr)
pybind11_fail("NumPy: unsupported field dtype");
dtypes.emplace_back(field.descr, false);
dtypes.emplace_back(field.descr, true);
formats.append(dtypes.back());
}
args["names"] = names;