From 7c7d78d87f219d7ccc3083582ec86d79b5ce6069 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 28 Jul 2023 14:13:14 -0700 Subject: [PATCH] clang-tidy fixes (automatic) --- include/pybind11/detail/type_caster_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pybind11/detail/type_caster_base.h b/include/pybind11/detail/type_caster_base.h index 0fb15a162..98137a7f9 100644 --- a/include/pybind11/detail/type_caster_base.h +++ b/include/pybind11/detail/type_caster_base.h @@ -104,9 +104,9 @@ all_type_info_get_cache(PyTypeObject *type); inline void all_type_info_add_base_most_derived_first(std::vector &bases, type_info *addl_base) { - for (std::vector::const_iterator it = bases.begin(); it != bases.end(); it++) { + for (auto it = bases.begin(); it != bases.end(); it++) { type_info *existing_base = *it; - if (PyType_IsSubtype(addl_base->type, existing_base->type)) { + if (PyType_IsSubtype(addl_base->type, existing_base->type) != 0) { bases.insert(it, addl_base); return; }