[vlc-commits] adjust: fix signedness

Rémi Denis-Courmont git at videolan.org
Sun Mar 3 10:25:15 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar  3 11:04:32 2019 +0200| [f95bbc6210b46ad56e619e08b4554ac083da1296] | committer: Rémi Denis-Courmont

adjust: fix signedness

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f95bbc6210b46ad56e619e08b4554ac083da1296
---

 modules/video_filter/adjust.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_filter/adjust.c b/modules/video_filter/adjust.c
index ca8d41d23d..e184a9fc70 100644
--- a/modules/video_filter/adjust.c
+++ b/modules/video_filter/adjust.c
@@ -296,7 +296,7 @@ static picture_t *FilterPlanar( filter_t *p_filter, picture_t *p_pic )
         /* Fill the luma lookup table */
         for( unsigned i = 0 ; i < i_size; i++ )
         {
-            pi_luma[ i ] = pi_gamma[VLC_CLIP( (int)(i_lum + i_cont * i / i_range), 0, i_max )];
+            pi_luma[ i ] = pi_gamma[VLC_CLIP( (int)(i_lum + i_cont * i / i_range), 0, (int) i_max )];
         }
     }
     else



More information about the vlc-commits mailing list