commit | 80a3785a66a61d4aaa3543a450ef249fbec33d5a | [log] [tgz] |
---|---|---|
author | Ivan Smirnov <i.s.smirnov@gmail.com> | Sun Jun 19 16:40:52 2016 +0100 |
committer | Ivan Smirnov <i.s.smirnov@gmail.com> | Sat Aug 13 12:43:16 2016 +0100 |
tree | 995cdd22f0c5a7c43e38e03a8b9185ba4e20a938 | |
parent | 8502f542b36d0cbb1f3af532300df149f9ca773a [diff] |
Borrow field descriptors for recarray dtype
diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 6e9a629..3f538e5 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h
@@ -240,7 +240,7 @@ 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;