Signed-off-by: Vicent Marti <tanoku@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
e = q, q = q->next, q_size--;
else if (q_size == 0 || q == NULL ||
- p->commit->commit_time <= q->commit->commit_time)
+ p->commit->commit_time >= q->commit->commit_time)
e = p, p = p->next, p_size--;
else
time_t previous_time;
#define TEST_SORTED() \
- previous_time = 0;\
+ previous_time = INT_MAX;\
for (n = list.head; n != NULL; n = n->next)\
{\
- must_be_true(n->commit->commit_time >= previous_time);\
+ must_be_true(n->commit->commit_time <= previous_time);\
previous_time = n->commit->commit_time;\
}