From 16febebd28aafe8a47472d669b399dded8f84c5e Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 3 Mar 2014 11:30:54 +0000 Subject: [PATCH] [trunk] Explicitely trigger issue 229, there may be an impact in code execution. The assert may get removed afterward Update issue 229 --- src/lib/openjp2/opj_intmath.h | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2