From 80a3785a66a61d4aaa3543a450ef249fbec33d5a Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Sun, 19 Jun 2016 16:40:52 +0100 Subject: [PATCH] Borrow field descriptors for recarray dtype --- include/pybind11/numpy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 6e9a629db..3f538e56b 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -240,7 +240,7 @@ template 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;