Skip to content

Commit

Permalink
Fix set method
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Feb 5, 2025
1 parent 93221c2 commit 60ec611
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/xtd.core/src/xtd/collections/bit_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ bit_array& bit_array::right_shift(xtd::size count) noexcept {

void bit_array::set(size index, bool value) {
flush(); // Must be call first
if (index >= length()) throw argument_out_of_range_exception {};
set_bit_value(index, value);
}

Expand Down

0 comments on commit 60ec611

Please sign in to comment.