Update cv2/program.c

This commit is contained in:
Yurii Yakovenko 2024-10-07 20:03:50 +00:00
parent 365dddab3c
commit c3301fb347

View File

@ -58,7 +58,7 @@ void sort_pizza_list(struct pizza* list, int n)
sorted=true;
for(int i=0; i<n-1-k; i++)
{
if(compare_pizza(list[i], list[i+1])>1)
if(compare_pizza(list[i], list[i+1])<0)
{
tmp=list[i];
list[i]=list[i+1];