fix warnings: unsigned check for >= 0 is always true

This commit is contained in:
Michael Stapelberg 2014-02-08 21:03:26 +01:00
parent 6ae4ecb1de
commit 22be7bc986
1 changed files with 2 additions and 2 deletions

View File

@ -61,11 +61,11 @@ void xcursor_set_root_cursor(int cursor_id) {
}
xcb_cursor_t xcursor_get_cursor(enum xcursor_cursor_t c) {
assert(c >= 0 && c < XCURSOR_CURSOR_MAX);
assert(c < XCURSOR_CURSOR_MAX);
return cursors[c];
}
int xcursor_get_xcb_cursor(enum xcursor_cursor_t c) {
assert(c >= 0 && c < XCURSOR_CURSOR_MAX);
assert(c < XCURSOR_CURSOR_MAX);
return xcb_cursors[c];
}