File tree Expand file tree Collapse file tree
include/openPMD/binding/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,8 +58,7 @@ inline Datatype dtype_from_numpy(pybind11::dtype const dt)
5858 return Datatype::INT;
5959 else if (dt.char_ () == pybind11::dtype (" int_" ).char_ ())
6060 return Datatype::LONG;
61- else if (dt.char_ () == pybind11::dtype (" long" ).char_ ()) // alias used on
62- // Win64
61+ else if (dt.char_ () == pybind11::dtype (" l" ).char_ ()) // alias used on Win64
6362 return Datatype::LONG;
6463 else if (dt.char_ () == pybind11::dtype (" longlong" ).char_ ())
6564 return Datatype::LONGLONG;
@@ -69,8 +68,7 @@ inline Datatype dtype_from_numpy(pybind11::dtype const dt)
6968 return Datatype::UINT;
7069 else if (dt.char_ () == pybind11::dtype (" uint" ).char_ ())
7170 return Datatype::ULONG;
72- else if (dt.char_ () == pybind11::dtype (" ulong" ).char_ ()) // alias used on
73- // Win64
71+ else if (dt.char_ () == pybind11::dtype (" L" ).char_ ()) // alias used on Win64
7472 return Datatype::ULONG;
7573 else if (dt.char_ () == pybind11::dtype (" ulonglong" ).char_ ())
7674 return Datatype::ULONGLONG;
You can’t perform that action at this time.
0 commit comments