Skip to content

Commit

Permalink
Fix another clang-tidy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenBaert committed Nov 3, 2024
1 parent 963ea97 commit e03450b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_numpy_dtypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ TEST_SUBMODULE(numpy_dtypes, m) {
#undef TEST_DTYPE
return res;
});
m.def("test_dtype_switch", [](py::array arr) -> py::array {
m.def("test_dtype_switch", [](const py::array &arr) -> py::array {
switch (arr.dtype().normalized_num()) {
case py::dtype::num_of<int8_t>():
return dispatch_array_increment<int8_t>(arr);
Expand Down

0 comments on commit e03450b

Please sign in to comment.