mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-14 01:23:53 +00:00
silence clang-tidy warning
This commit is contained in:
parent
029b157540
commit
d9e3bd3248
@ -181,6 +181,7 @@ PYBIND11_NAMESPACE_BEGIN(detail)
|
|||||||
template <typename T, typename SFINAE>
|
template <typename T, typename SFINAE>
|
||||||
struct compare_buffer_info {
|
struct compare_buffer_info {
|
||||||
static bool compare(const buffer_info &b) {
|
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);
|
return b.format == format_descriptor<T>::format() && b.itemsize == (ssize_t) sizeof(T);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user