diff options
| author | mayeut <mayeut@users.noreply.github.com> | 2015-08-23 11:43:38 +0200 |
|---|---|---|
| committer | mayeut <mayeut@users.noreply.github.com> | 2015-08-23 11:43:38 +0200 |
| commit | 8a95efcd3fa19d95fee9888acd44d7396711fead (patch) | |
| tree | 8b84ab72efe58e640223dabe6bcf29868c90b4d9 /src/bin/common | |
| parent | 38770403d49528936fae44de5fc6089f0bf0c3e9 (diff) | |
Fix some UBSan warnings
Diffstat (limited to 'src/bin/common')
| -rw-r--r-- | src/bin/common/color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/common/color.c b/src/bin/common/color.c index d662f995..98a4cec8 100644 --- a/src/bin/common/color.c +++ b/src/bin/common/color.c @@ -742,7 +742,7 @@ void color_esycc_to_rgb(opj_image_t *image) int y, cb, cr, sign1, sign2, val; unsigned int w, h, max, i; int flip_value = (1 << (image->comps[0].prec-1)); - int max_value = (~(-1 << image->comps[0].prec)); + int max_value = (1 << image->comps[0].prec) - 1; if(image->numcomps < 3) return; |
