diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-11-09 09:52:55 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-12-02 10:50:56 +0000 |
commit | 66d3f1962d81c3516d100e2417a9be7a6ae5f73f (patch) | |
tree | b6b07bc6a8f5bfb257bde0aa7a6fcdd83f677972 /hw/qxl-render.c | |
parent | d18058962133a00ec5731657fb34146f9c7dd572 (diff) |
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.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/qxl-render.c')
-rw-r--r-- | 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 2c51ba9806..133d09324c 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; |