diff --git a/libavutil/tree.c b/libavutil/tree.c index 22679692b4..e651e65f07 100644 --- a/libavutil/tree.c +++ b/libavutil/tree.c @@ -167,19 +167,20 @@ static void print(AVTreeNode *t, int depth){ int i; for(i=0; istate, t->elem); + av_log(NULL, AV_LOG_ERROR, "Node %p %2d %p\n", t, t->state, t->elem); print(t->child[0], depth+1); print(t->child[1], depth+1); }else av_log(NULL, AV_LOG_ERROR, "NULL\n"); } -static int cmp(const void *a, const void *b){ - return a-b; +static int cmp(void *a, const void *b){ + return (uint8_t*)a-(const uint8_t*)b; } int main(void){ - int i,k; + int i; + void *k; AVTreeNode *root= NULL, *node=NULL; AVLFG prn;