diff options
-rw-r--r-- | xsetroot.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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*/ |