Skip to content

Commit

Permalink
Add const
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaVolgushev committed Nov 27, 2024
1 parent f888035 commit a72e340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/algorithms/nar/des/encoded_nar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ NAR EncodedNAR::Decode(FeatureDomains& domains) const {
size_t implication_sign_after = implication_sign_pos_ * (encoded_value_ranges_.size() - 1);
size_t handling_feat_num = 0;
for (size_t feature_index : feature_order) {
EncodedValueRange encoded_feature = encoded_value_ranges_[feature_index];
EncodedValueRange const& encoded_feature = encoded_value_ranges_[feature_index];
if (encoded_feature.threshold < RNG().Next()) {
handling_feat_num++;
continue;
Expand Down

0 comments on commit a72e340

Please sign in to comment.