From a4cc897222b8cbfb621d27c7c9f070dbbb05def9 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Wed, 4 Nov 2009 23:18:36 +0800 Subject: Fix various compilation warnings Signed-off-by: Vic Lee Signed-off-by: Johannes Schindelin --- libvncserver/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libvncserver/cursor.c') diff --git a/libvncserver/cursor.c b/libvncserver/cursor.c index 154bf11..5e30017 100644 --- a/libvncserver/cursor.c +++ b/libvncserver/cursor.c @@ -410,7 +410,7 @@ void rfbMakeXCursorFromRichCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr cursor for(i=0,bit=0x80;iwidth;i++,bit=(bit&1)?0x80:bit>>1) { if (interp) { int r = 0, g = 0, b = 0, grey; - char *p = cursor->richSource+j*width+i*bpp; + unsigned char *p = cursor->richSource+j*width+i*bpp; if (bpp == 1) { unsigned char* uc = (unsigned char*) p; SETRGB(uc); -- cgit v1.2.1