diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-06-24 22:27:37 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-06-24 22:28:53 -0700 |
commit | 980ed7e7c98606f09e981a52255acd76b335a19a (patch) | |
tree | 4e5d0c3c4ab975b36f5cd2463c46215f857f748e | |
parent | 4219ed8b5cfb832b20cb50a0404b3bd02bc863b4 (diff) |
Fix a couple sign comparison warnings
XF86VMode.c:352:19: warning: comparison of integers of different signs: 'int' and 'CARD32' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < rep.modecount; i++) {
~ ^ ~~~~~~~~~~~~~
XF86VMode.c:1048:16: warning: comparison of integers of different signs: 'int' and 'CARD32' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < rep.clocks; i++) {
~ ^ ~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/XF86VMode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/XF86VMode.c b/src/XF86VMode.c index c85cbd8..9407c47 100644 --- a/src/XF86VMode.c +++ b/src/XF86VMode.c @@ -299,7 +299,7 @@ XF86VidModeGetAllModeLines(Display* dpy, int screen, int* modecount, XF86VidModeModeInfo *mdinfptr, **modelines; xXF86VidModeModeInfo xmdline; xXF86OldVidModeModeInfo oldxmdline; - int i; + unsigned int i; int majorVersion, minorVersion; Bool protocolBug = False; @@ -1016,7 +1016,7 @@ XF86VidModeGetDotClocks(Display* dpy, int screen, int *flagsPtr, XExtDisplayInfo *info = find_display (dpy); xXF86VidModeGetDotClocksReply rep; xXF86VidModeGetDotClocksReq *req; - int i, *dotclocks; + int *dotclocks; CARD32 dotclk; Bool result = True; @@ -1045,6 +1045,8 @@ XF86VidModeGetDotClocks(Display* dpy, int screen, int *flagsPtr, result = False; } else { + unsigned int i; + for (i = 0; i < rep.clocks; i++) { _XRead(dpy, (char*)&dotclk, 4); dotclocks[i] = dotclk; |