Mercurial > libavcodec.hg
diff fraps.c @ 5157:1d116d421bbb libavcodec
correct type of qsort() comparison callback
author | mru |
---|---|
date | Sat, 16 Jun 2007 15:15:17 +0000 |
parents | 66ef3690d108 |
children | 2b72f9bc4f06 |
line wrap: on
line diff
--- a/fraps.c Sat Jun 16 15:15:16 2007 +0000 +++ b/fraps.c Sat Jun 16 15:15:17 2007 +0000 @@ -88,7 +88,8 @@ * 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; }