diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-09-22 15:56:27 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-09-22 15:56:27 -0700 |
commit | a964f14b7b61bb8055d5144c96ecbba5dfae4a3e (patch) | |
tree | 14e8a35378a5cb35e6bdaecc5fd38e7423c74ee1 | |
parent | 28ad81420723175bfb163e20406af6d4d56bf4d4 (diff) |
Fix sign comparison warnings for loop indexes
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 <alan.coopersmith@oracle.com>
-rw-r--r-- | src/XvMC.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |