diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 57961c5ad..79c4cf378 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -407,7 +407,7 @@ struct npy_format_descriptor::value> pybind11_fail("NumPy: unsupported field dtype"); names.append(PYBIND11_STR_TYPE(field.name)); formats.append(field.descr); - offsets.append(int_(field.offset)); + offsets.append(pybind11::int_(field.offset)); } dtype_ptr = pybind11::dtype(names, formats, offsets, sizeof(T)).release().ptr();