From 51caff5dcfb8dced1677991610f739a7dde70a2e Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Tue, 4 Mar 2014 08:40:06 +0000 Subject: [PATCH] [trunk] Revert portion of r2562, need to investigate issue. Update issue 269 --- src/lib/openjp2/mqc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/openjp2/mqc.c b/src/lib/openjp2/mqc.c index e0ecde43..5fcbe6fd 100644 --- a/src/lib/openjp2/mqc.c +++ b/src/lib/openjp2/mqc.c @@ -372,7 +372,9 @@ void opj_mqc_destroy(opj_mqc_t *mqc) { OPJ_UINT32 opj_mqc_numbytes(opj_mqc_t *mqc) { const ptrdiff_t diff = mqc->bp - mqc->start; +#if 0 assert( diff <= 0xffffffff && diff >= 0 ); /* UINT32_MAX */ +#endif return (OPJ_UINT32)diff; } -- 2.40.0