Skip to content

chore: added check on iterator end position #5129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Addressing code review comments
  • Loading branch information
cliffburdick committed May 27, 2024
commit 895bb4b30be684f0304cebd8c816a93ac3a133aa
3 changes: 3 additions & 0 deletions include/pybind11/detail/class.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ inline void clear_patients(PyObject *self) {
Py_CLEAR(patient);
}
}
else {
pybind11_fail("FATAL: Internal consistency check failed: Invalid clear_patients() call.");
}
}

/// Clears all internal data from the instance and removes it from registered instances in
Expand Down
Loading