[util] Fix an out-by-one in pqueue tests

Showed up only when the data arrays were packed.
This commit is contained in:
Bill Currie 2021-08-02 23:08:14 +09:00
parent ec54c54226
commit 80b17623b1

View file

@ -215,7 +215,7 @@ static test_t tests[] = {
{ 0, 0, dump_queue },
{ sort2 + 4, 0, test_adjust },
{ 0, 0, dump_queue },
{ sort3 + 7, 4, test_adjust },
{ sort3 + 6, 4, test_adjust },
{ 0, 0, dump_queue },
{ sort3 + 0, SIZEOF(sort), test_remove },
};