ref: 7d7b8d42388861df0b510646922268a6f5d704f5
parent: 7b826d71772a694ec98d325743af7208f0da0f70
author: Janne Grunau <[email protected]>
date: Wed Oct 17 17:07:30 EDT 2018
dav1d_decode: avoid broken and unecessary int cast in assert Fixes #66.
--- a/src/lib.c
+++ b/src/lib.c
@@ -193,7 +193,7 @@
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);