Commit 859cfdc0 authored by Måns Rullgård's avatar Måns Rullgård
Browse files

correct type of qsort() comparison callback

Originally committed as revision 9338 to svn://
parent e336139f
......@@ -88,7 +88,8 @@ static int decode_init(AVCodecContext *avctx)
* Comparator - our nodes should ascend by count
* but with preserved symbol order
static int huff_cmp(const Node *a, const Node *b){
static int huff_cmp(const void *va, const void *vb){
const Node *a = va, *b = vb;
return (a->count - b->count)*256 + a->sym - b->sym;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment