Skip to content

Commit

Permalink
crnlib: fix CodeQL report cpp/comparison-with-wider-type
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jul 10, 2024
1 parent 2e22f1c commit 85c1749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crnlib/crn_comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ static void remap_color_endpoints(uint16* remapping, const optimize_color_params
remaining[i].e = unpacked_endpoints[i];
}
crnlib::vector<uint16> chosen(n << 1);
uint remaining_count = n, chosen_front = n, chosen_back = chosen_front;
uint16 remaining_count = n, chosen_front = n, chosen_back = chosen_front;
chosen[chosen_front] = selected;
optimize_color_params::unpacked_endpoint front_e = remaining[selected].e, back_e = front_e;
bool front_updated = true, back_updated = true;
Expand Down

0 comments on commit 85c1749

Please sign in to comment.