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;