summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdri2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdri2.c b/libdri2.c
index f4d1415..38968a7 100644
--- a/libdri2.c
+++ b/libdri2.c
@@ -230,7 +230,7 @@ DRI2Buffer *DRI2GetBuffers(Display *dpy, XID drawable,
DRI2Buffer *buffers;
xDRI2Buffer repBuffer;
CARD32 *p;
- unsigned int i;
+ int i;
XextCheckExtension (dpy, info, dri2ExtensionName, False);
@@ -262,7 +262,7 @@ DRI2Buffer *DRI2GetBuffers(Display *dpy, XID drawable,
return NULL;
}
- for (i = 0; i < rep.count; i++) {
+ for (i = 0; (unsigned int)i < rep.count; i++) {
_XReadPad(dpy, (char *) &repBuffer, sizeof repBuffer);
buffers[i].attachment = repBuffer.attachment;
buffers[i].name = repBuffer.name;