Skip to contentSkip to conversation

qxl: Don't convert from size_t to int and back in qxl_cursor()

PATCH Applied Markus Armbruster 2 participants 2 messages Nov 9, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qxl: Don't convert from size_t to int and back in qxl_cursor()

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

---
 hw/qxl-render.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/qxl-render.c +1 -1
index 2c51ba9..133d093 100644
@@ -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;
Signature · 1 line
1.7.6.4