diff options
author | Cooper Yuan <cooperyuan@gmail.com> | 2012-08-03 15:08:25 +0200 |
---|---|---|
committer | Cooper Yuan <cooperyuan@gmail.com> | 2012-08-03 15:08:25 +0200 |
commit | c680775e78af8fed1fd209d30b76b96b7085d7e4 (patch) | |
tree | 7865cb5dc3e00f4547f63f52382fe7fa70c7def7 | |
parent | f59a5f82efa60bdb411229dfb9de22bf237c3a56 (diff) |
-rw-r--r-- | libdri2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |