X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fopenjp2%2Fopj_intmath.h;h=73d08a28e572cc809959674afc7c12da1bb9d793;hb=16febebd28aafe8a47472d669b399dded8f84c5e;hp=94512afc71ed5b3c8e20f595147d0ba3b5758994;hpb=4b140e060bf1a5cd1cc048014bc9e512930e2a8d;p=openjpeg.git diff --git a/src/lib/openjp2/opj_intmath.h b/src/lib/openjp2/opj_intmath.h index 94512afc..73d08a28 100644 --- a/src/lib/openjp2/opj_intmath.h +++ b/src/lib/openjp2/opj_intmath.h @@ -102,6 +102,7 @@ Divide an integer and round upwards @return Returns a divided by b */ static INLINE OPJ_INT32 opj_int_ceildiv(OPJ_INT32 a, OPJ_INT32 b) { + assert(b); return (a + b - 1) / b; }