From 22be7bc986f51e8dc798fcd5f6bb72e3ed87ba0c Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 8 Feb 2014 21:03:26 +0100 Subject: [PATCH] fix warnings: unsigned check for >= 0 is always true --- src/xcursor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; } -- 2.39.5