Skip to content

Commit

Permalink
silence clang-tidy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve committed May 19, 2023
1 parent 029b157 commit d9e3bd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/pybind11/buffer_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ PYBIND11_NAMESPACE_BEGIN(detail)
template <typename T, typename SFINAE>
struct compare_buffer_info {
static bool compare(const buffer_info &b) {
// NOLINTNEXTLINE(bugprone-sizeof-expression) Needed for `PyObject *`
return b.format == format_descriptor<T>::format() && b.itemsize == (ssize_t) sizeof(T);
}
};
Expand Down

0 comments on commit d9e3bd3

Please sign in to comment.