Skip to content
Snippets Groups Projects
Commit 8a79a009 authored by Paul B Mahol's avatar Paul B Mahol
Browse files

lavu/utils: silence warnings about incompatible pointer types


Signed-off-by: default avatarPaul B Mahol <onemda@gmail.com>
parent 194fde38
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment