Skip to content

Commit 85c1749

Browse files
committed
crnlib: fix CodeQL report cpp/comparison-with-wider-type
1 parent 2e22f1c commit 85c1749

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
@@ -632,7 +632,7 @@ static void remap_color_endpoints(uint16* remapping, const optimize_color_params
632632
remaining[i].e = unpacked_endpoints[i];
633633
}
634634
crnlib::vector<uint16> chosen(n << 1);
635-
uint remaining_count = n, chosen_front = n, chosen_back = chosen_front;
635+
uint16 remaining_count = n, chosen_front = n, chosen_back = chosen_front;
636636
chosen[chosen_front] = selected;
637637
optimize_color_params::unpacked_endpoint front_e = remaining[selected].e, back_e = front_e;
638638
bool front_updated = true, back_updated = true;

0 commit comments

Comments
 (0)