From: Michael Stapelberg Date: Sat, 8 Feb 2014 20:03:26 +0000 (+0100) Subject: fix warnings: unsigned check for >= 0 is always true X-Git-Tag: 4.8~119 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22be7bc986f51e8dc798fcd5f6bb72e3ed87ba0c;p=i3%2Fi3 fix warnings: unsigned check for >= 0 is always true --- diff --git a/src/xcursor.c b/src/xcursor.c index dcbe2ad0..dbaf2e5b 100644 --- a/src/xcursor.c +++ b/src/xcursor.c @@ -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]; }