changes for actubent - not compiling!
FossilOrigin-Name: adf99bdc2ee784a4acf4066b90c33fb1e6124e8c49c255d3fd5011bb33852d52
This commit is contained in:
@ -29,13 +29,13 @@
|
||||
* @param data Element to get
|
||||
* @return pointer to element or NULL if not found.
|
||||
*/
|
||||
void * mavl_get(struct mavl *t ,void *data)
|
||||
union mavldata * mavl_get(struct mavl *t ,union mavldata *data)
|
||||
{
|
||||
struct mavlnode *n = t->root;
|
||||
while(n){
|
||||
int rc=t->cmp(data,n->data);
|
||||
int rc=t->cmp(data,&n->data);
|
||||
if (rc==0)
|
||||
return n->data;
|
||||
return &n->data;
|
||||
if (rc<0)
|
||||
n=n->left;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user