vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Fri Nov 29 
19:27:46 2013 +0100| [6972648a653b8b20f89526840d3a8310e2b67105] | committer: 
Jean-Baptiste Kempf

CDG: fix warning

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

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

diff --git a/modules/codec/cdg.c b/modules/codec/cdg.c
index 3d132f9..5a28a33 100644
--- a/modules/codec/cdg.c
+++ b/modules/codec/cdg.c
@@ -329,8 +329,8 @@ static int DecodeScroll( decoder_sys_t *p_cdg, const 
uint8_t *p_data, int b_copy
             }
             else
             {
-                if( dy < 0 || dy >= CDG_SCREEN_HEIGHT ||
-                    dx < 0 || dx >= CDG_SCREEN_WIDTH )
+                if( dy < 0 || (unsigned)dy >= CDG_SCREEN_HEIGHT ||
+                    dx < 0 || (unsigned)dx >= CDG_SCREEN_WIDTH )
                     continue;
             }
             p_cdg->screen[dy*CDG_SCREEN_PITCH+dx] = copy[y*CDG_SCREEN_PITCH+x];

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to