Skip to content

Commit

Permalink
clang-tidy fixes (automatic)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Jul 28, 2023
1 parent 9c7d267 commit 7c7d78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pybind11/detail/type_caster_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ all_type_info_get_cache(PyTypeObject *type);

inline void all_type_info_add_base_most_derived_first(std::vector<type_info *> &bases,
type_info *addl_base) {
for (std::vector<type_info *>::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;
}
Expand Down

0 comments on commit 7c7d78d

Please sign in to comment.