diff options
Diffstat (limited to 'x11vnc/cursor.c')
| -rw-r--r-- | x11vnc/cursor.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/x11vnc/cursor.c b/x11vnc/cursor.c index 0f3b2c6..ab9218c 100644 --- a/x11vnc/cursor.c +++ b/x11vnc/cursor.c @@ -1227,6 +1227,8 @@ unsigned long get_cursor_serial(int mode) {  		return last_cursor;  	} else if (mode == 1) {  		return (unsigned long) last_index; +	} else { +		return (unsigned long) last_index;  	}  } @@ -1320,7 +1322,7 @@ fprintf(stderr, "sc: %d  %d/%d %d - %d %d\n", serial, w, h, cbpp, xhot, yhot);  			oldest = i;  			oldtime = curs_times[i];  		} -		if (serial == curs_index[i]) { +		if (serial == (int) curs_index[i]) {  			/*  			 * got a hit with an existing cursor,  			 * use that one. | 
