Mercurial > libavcodec.hg
changeset 5157:1d116d421bbb libavcodec
correct type of qsort() comparison callback
| author | mru |
|---|---|
| date | Sat, 16 Jun 2007 15:15:17 +0000 |
| parents | 387979b83884 |
| children | 65b1bfb3a74c |
| files | fraps.c |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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; }
