[trunk] Apply final missing patch from sumatrapdf team:

http://bugs.ghostscript.com/show_bug.cgi?id=694893
Update issue 231
This commit is contained in:
Mathieu Malaterre 2014-03-14 11:59:18 +00:00
parent 9194dfb94b
commit 9d0bdf69e5
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ Divide an integer by a power of 2 and round upwards
@return Returns a divided by 2^b
*/
static INLINE OPJ_INT32 opj_int_ceildivpow2(OPJ_INT32 a, OPJ_INT32 b) {
return (a + (1 << b) - 1) >> b;
return (OPJ_INT32)((a + (OPJ_INT64)(1 << b) - 1) >> b);
}
/**
Divide an integer by a power of 2 and round downwards