Skip to content

Commit 09268f4

Browse files
author
camilo
committed
fix to cmp function for entry order preservation
1 parent 8cf11e2 commit 09268f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qkernel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ static qBool_t qOS_TaskEntryOrderPreserver( qList_CompareHandle_t h )
724724
const qTask_t *t1, *t2;
725725
/*cstat -MISRAC2012-Rule-11.5 -CERT-EXP36-C_b*/
726726
t1 = (const qTask_t*)h->n1;
727-
t2 = (const qTask_t*)h->n1;
727+
t2 = (const qTask_t*)h->n2;
728728
/*cstat +MISRAC2012-Rule-11.5 +CERT-EXP36-C_b*/
729729
return (qBool_t)( t1->qPrivate.entry > t2->qPrivate.entry );
730730
}

0 commit comments

Comments
 (0)