From a964f14b7b61bb8055d5144c96ecbba5dfae4a3e Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 22 Sep 2018 15:56:27 -0700 Subject: Fix sign comparison warnings for loop indexes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit XvMC.c: In function ‘XvMCListSurfaceTypes’: XvMC.c:124:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < rep.num; i++) { ^ XvMC.c: In function ‘XvMCListSubpictureTypes’: XvMC.c:185:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < rep.num; i++) { ^ Signed-off-by: Alan Coopersmith --- src/XvMC.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XvMC.c b/src/XvMC.c index 736760b..76a8552 100644 --- a/src/XvMC.c +++ b/src/XvMC.c @@ -117,7 +117,7 @@ XvMCSurfaceInfo * XvMCListSurfaceTypes(Display *dpy, XvPortID port, int *num) if(surface_info) { xvmcSurfaceInfo sinfo; - int i; + CARD32 i; *num = rep.num; @@ -178,7 +178,7 @@ XvImageFormatValues * XvMCListSubpictureTypes ( if(ret) { xvImageFormatInfo Info; - int i; + CARD32 i; *count_return = rep.num; -- cgit v1.2.3