[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:
parent
9194dfb94b
commit
9d0bdf69e5
|
@ -119,7 +119,7 @@ Divide an integer by a power of 2 and round upwards
|
||||||
@return Returns a divided by 2^b
|
@return Returns a divided by 2^b
|
||||||
*/
|
*/
|
||||||
static INLINE OPJ_INT32 opj_int_ceildivpow2(OPJ_INT32 a, OPJ_INT32 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
|
Divide an integer by a power of 2 and round downwards
|
||||||
|
|
Loading…
Reference in New Issue