[vlc-commits] tiger: fix maths flaw

Rémi Denis-Courmont git at videolan.org
Sat Jan 2 22:21:21 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan  2 23:20:50 2016 +0200| [0ff1f6660fdc5d7efb8d146da96fec278c266a9f] | committer: Rémi Denis-Courmont

tiger: fix maths flaw

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

 modules/codec/kate.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index f0c2b27..64befc6 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -1055,7 +1055,7 @@ static int OnConfigurationChanged( decoder_t *p_dec, const char *psz_var,
 
     TEST_TIGER_VAR( "kate-tiger-default-font-color" )
     {
-        p_sys->i_tiger_default_font_color = (p_sys->i_tiger_default_font_color & 0xff00000000) | newval.i_int;
+        p_sys->i_tiger_default_font_color = (p_sys->i_tiger_default_font_color & 0xff000000U) | newval.i_int;
         UpdateTigerFontColor( p_dec );
     }
 
@@ -1067,7 +1067,7 @@ static int OnConfigurationChanged( decoder_t *p_dec, const char *psz_var,
 
     TEST_TIGER_VAR( "kate-tiger-default-background-color" )
     {
-        p_sys->i_tiger_default_background_color = (p_sys->i_tiger_default_background_color & 0xff00000000) | newval.i_int;
+        p_sys->i_tiger_default_background_color = (p_sys->i_tiger_default_background_color & 0xff000000U) | newval.i_int;
         UpdateTigerBackgroundColor( p_dec );
     }
 



More information about the vlc-commits mailing list