projects
/
openjpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[trunk] Explicitely trigger issue 229, there may be an impact in code execution....
[openjpeg.git]
/
src
/
lib
/
openjp2
/
opj_intmath.h
diff --git
a/src/lib/openjp2/opj_intmath.h
b/src/lib/openjp2/opj_intmath.h
index 94512afc71ed5b3c8e20f595147d0ba3b5758994..73d08a28e572cc809959674afc7c12da1bb9d793 100644
(file)
--- 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;
}