mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-21 06:05:32 +08: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…
x
Reference in New Issue
Block a user