Skip to content

Commit c4357a9

Browse files
committed
crnlib: fix CodeQL report cpp/comparison-with-wider-type
1 parent 31ead19 commit c4357a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crnlib/crn_comp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ static void remap_color_endpoints(uint16* remapping, const optimize_color_params
639639
remaining[i].e = unpacked_endpoints[i];
640640
}
641641
crnlib::vector<uint16> chosen(n << 1);
642-
uint remaining_count = n, chosen_front = n, chosen_back = chosen_front;
642+
uint16 remaining_count = n, chosen_front = n, chosen_back = chosen_front;
643643
chosen[chosen_front] = selected;
644644
optimize_color_params::unpacked_endpoint front_e = remaining[selected].e, back_e = front_e;
645645
bool front_updated = true, back_updated = true;

0 commit comments

Comments
 (0)