diff options
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/fitz_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/fitz_base.h b/fitz/fitz_base.h index 769cd284..71804caf 100644 --- a/fitz/fitz_base.h +++ b/fitz/fitz_base.h @@ -213,7 +213,7 @@ void *fz_hashgetval(fz_hashtable *table, int idx); */ /* multiply 8-bit fixpoint (0..1) so that 0*0==0 and 255*255==255 */ -#define fz_mul255(a,b) (((a) * ((b) + 1)) >> 8) +#define fz_mul255(a,b) (((a) * ((b) + ((b) >> 7))) >> 8) #define fz_floor(x) floor(x) #define fz_ceil(x) ceil(x) |