Whoops, we were copying instead of comparing at the end of trying to
find a queue element. Notified by nagendra modadugu <nagendra@cs.stanford.edu>
This commit is contained in:
parent
3b4a0225e2
commit
ee8f293701
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ pqueue_find(pqueue_s *pq, unsigned char *prio64be)
|
|||
}
|
||||
|
||||
/* check the one last node */
|
||||
if ( memcpy(next->priority, prio64be,8) ==0)
|
||||
if ( memcmp(next->priority, prio64be,8) ==0)
|
||||
found = next;
|
||||
|
||||
if ( ! found)
|
||||
|
|
Loading…
Reference in a new issue