Skip to content

Commit

Permalink
Merge branch 'master' into enh/py_bind/nb_api_more
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdonline committed Aug 6, 2024
2 parents 7dc294a + 35823e6 commit c526b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neuron/model_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ struct Model {

private:
container::Mechanism::storage& mechanism_data_impl(int type) const {
if (0 <= type && type >= m_mech_data.size()) {
if (type < 0 || type >= m_mech_data.size()) {
throw std::runtime_error("mechanism_data(" + std::to_string(type) +
"): type out of range");
}
Expand Down

0 comments on commit c526b7f

Please sign in to comment.