diff --git a/crnlib/crn_comp.cpp b/crnlib/crn_comp.cpp index dd823acd..c12d6946 100644 --- a/crnlib/crn_comp.cpp +++ b/crnlib/crn_comp.cpp @@ -639,7 +639,7 @@ static void remap_color_endpoints(uint16* remapping, const optimize_color_params remaining[i].e = unpacked_endpoints[i]; } crnlib::vector 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;