mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-16 21:57:55 +00:00
Borrow field descriptors for recarray dtype
This commit is contained in:
parent
8502f542b3
commit
80a3785a66
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user