Commit 7d7b8d42 authored by Janne Grunau's avatar Janne Grunau Committed by Ronald S. Bultje
Browse files

dav1d_decode: avoid broken and unecessary int cast in assert

Fixes #66.
parent 7b826d71
......@@ -193,7 +193,7 @@ int dav1d_decode(Dav1dContext *const c,
if ((res = dav1d_parse_obus(c, in)) < 0)
return res;
assert(res <= (int)in->sz);
assert((size_t)res <= in->sz);
in->sz -= res;
in->data += res;
if (!in->sz) dav1d_data_unref(in);
Supports Markdown
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