[vlc-commits] CDG: fix warning

Jean-Baptiste Kempf git at videolan.org
Sat Nov 30 21:31:17 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | 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];



More information about the vlc-commits mailing list