Skip to content

Commit

Permalink
For bitset single bit, first reset, then set the bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnhines committed Sep 20, 2024
1 parent 23071ee commit 6604aab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nrnoc/eion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ void nrn_check_conc_write(Prop* p_ok, Prop* pion, int i) {
for (k = 0, j = 0; j < n_memb_func; ++j) {
if (nrn_is_ion(j)) {
assert(k < max_ions);
ion_bit_[j].reset();
ion_bit_[j].set(k);
++k;
}
Expand Down

0 comments on commit 6604aab

Please sign in to comment.