From e10fdd543118a07c0b8c5536c176baf7f41b4f3a Mon Sep 17 00:00:00 2001 From: samr7 Date: Tue, 21 Aug 2012 01:34:39 -0700 Subject: [PATCH] Insert patterns into the AVL tree in the correct order. --- oclvanityminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oclvanityminer.c b/oclvanityminer.c index 19c9964..d80479a 100644 --- a/oclvanityminer.c +++ b/oclvanityminer.c @@ -99,7 +99,7 @@ workitem_avl_insert(avl_root_t *rootp, workitem_t *vpnew) int cmpres; itemp = *ptrp; vp = avl_item_entry(itemp, workitem_t, avlent); - cmpres = workitem_cmp(vpnew, vp); + cmpres = workitem_cmp(vp, vpnew); if (cmpres > 0) { ptrp = &itemp->ai_left; } else {