mirror of
https://github.com/GOSTSec/vanitygen
synced 2025-02-07 12:24:20 +00:00
Insert patterns into the AVL tree in the correct order.
This commit is contained in:
parent
498a5dfd23
commit
e10fdd5431
@ -99,7 +99,7 @@ workitem_avl_insert(avl_root_t *rootp, workitem_t *vpnew)
|
|||||||
int cmpres;
|
int cmpres;
|
||||||
itemp = *ptrp;
|
itemp = *ptrp;
|
||||||
vp = avl_item_entry(itemp, workitem_t, avlent);
|
vp = avl_item_entry(itemp, workitem_t, avlent);
|
||||||
cmpres = workitem_cmp(vpnew, vp);
|
cmpres = workitem_cmp(vp, vpnew);
|
||||||
if (cmpres > 0) {
|
if (cmpres > 0) {
|
||||||
ptrp = &itemp->ai_left;
|
ptrp = &itemp->ai_left;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user