diff options
| author | Tomoaki Teshima <tomoaki.teshima@gmail.com> | 2023-12-08 20:56:37 +0900 |
|---|---|---|
| committer | Tomoaki Teshima <tomoaki.teshima@gmail.com> | 2023-12-08 20:56:37 +0900 |
| commit | 597389a45f63a7cd872859eacb267ea1bda64e9e (patch) | |
| tree | 9c93033271c28ea841190516b5fe7b22bfa8149c /src/lib/openjp2/tcd.c | |
| parent | 6af39314bdb43cb9c7adcdbc7aa9381af42b52ba (diff) | |
suppress warning during build using clang
Diffstat (limited to 'src/lib/openjp2/tcd.c')
| -rw-r--r-- | src/lib/openjp2/tcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/tcd.c b/src/lib/openjp2/tcd.c index 438247b6..55e9a088 100644 --- a/src/lib/openjp2/tcd.c +++ b/src/lib/openjp2/tcd.c @@ -2330,7 +2330,7 @@ static OPJ_BOOL opj_tcd_dc_level_shift_decode(opj_tcd_t *p_tcd) for (j = 0; j < l_height; ++j) { for (i = 0; i < l_width; ++i) { OPJ_FLOAT32 l_value = *((OPJ_FLOAT32 *) l_current_ptr); - if (l_value > INT_MAX) { + if (l_value > (OPJ_FLOAT32)INT_MAX) { *l_current_ptr = l_max; } else if (l_value < INT_MIN) { *l_current_ptr = l_min; |
