diff --git a/du5/program.c b/du5/program.c index 73bfe10..c0d9216 100644 --- a/du5/program.c +++ b/du5/program.c @@ -70,6 +70,6 @@ int compare(const void* p1, const void* p2){ struct student* s2 = (struct student*)p2; // s1->votes je počet hlasov // s1->name je meno študenta - return (s2->votes)-(s1->votes)+1; + return (s2->votes)-(s1->votes); }