Commit 80a3785a by Ivan Smirnov

Borrow field descriptors for recarray dtype

parent 8502f542
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment