From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWTVi-0006Wc-Nr for qemu-devel@nongnu.org; Fri, 02 Dec 2011 08:50:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWTVh-0007jm-Ue for qemu-devel@nongnu.org; Fri, 02 Dec 2011 08:50:42 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:40245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWTVh-0007jD-JL for qemu-devel@nongnu.org; Fri, 02 Dec 2011 08:50:41 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 2 Dec 2011 13:50:40 -0000 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pB2DobOD2318552 for ; Fri, 2 Dec 2011 13:50:37 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pB2Dob2D029846 for ; Fri, 2 Dec 2011 06:50:37 -0700 From: Stefan Hajnoczi Date: Fri, 2 Dec 2011 13:50:20 +0000 Message-Id: <1322833833-9969-3-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1322833833-9969-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1322833833-9969-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 02/15] qxl: Don't convert from size_t to int and back in qxl_cursor() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Markus Armbruster , Stefan Hajnoczi From: Markus Armbruster Just for cleanliness; it would take a truly gigantic cursor to break. Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- hw/qxl-render.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/qxl-render.c b/hw/qxl-render.c index 2c51ba9..133d093 100644 --- a/hw/qxl-render.c +++ b/hw/qxl-render.c @@ -157,7 +157,7 @@ static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor) { QEMUCursor *c; uint8_t *image, *mask; - int size; + size_t size; c = cursor_alloc(cursor->header.width, cursor->header.height); c->hot_x = cursor->header.hot_spot_x; -- 1.7.7.3