[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 02/15] qxl: Don't convert from size_t to int and bac

From: Stefan Hajnoczi
Subject: [Qemu-devel] [PATCH 02/15] qxl: Don't convert from size_t to int and back in qxl_cursor()
Date: Fri, 2 Dec 2011 13:50:20 +0000

From: Markus Armbruster <address@hidden>

Just for cleanliness; it would take a truly gigantic cursor to break.

Signed-off-by: Markus Armbruster <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
 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 
     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;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]