Commit 8a79a009 authored by Paul B Mahol's avatar Paul B Mahol

lavu/utils: silence warnings about incompatible pointer types

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 194fde38
......@@ -99,7 +99,7 @@ unsigned av_int_list_length_for_size(unsigned elsize,
if (!list)
return 0;
#define LIST_LENGTH(type) \
{ type t = term, *l = list; for (i = 0; l[i] != t; i++); }
{ type t = term, *l = (type *)list; for (i = 0; l[i] != t; i++); }
switch (elsize) {
case 1: LIST_LENGTH(uint8_t); break;
case 2: LIST_LENGTH(uint16_t); break;
......
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