summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xsetroot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xsetroot.c b/xsetroot.c
index 21e8244..6b5d5c0 100644
--- a/xsetroot.c
+++ b/xsetroot.c
@@ -423,8 +423,8 @@ CreateCursorFromFiles(char *cursor_file, char *mask_file)
x_hot = BITMAP_HOT_DEFAULT;
y_hot = BITMAP_HOT_DEFAULT;
}
- if ((x_hot < 0) || (x_hot >= width) ||
- (y_hot < 0) || (y_hot >= height)) {
+ if ((x_hot < 0) || ((unsigned int)x_hot >= width) ||
+ (y_hot < 0) || ((unsigned int)y_hot >= height)) {
fprintf(stderr, "%s: hotspot is outside cursor bounds\n", program_name);
exit(1);
/*NOTREACHED*/