]> git.proxmox.com Git - mirror_qemu.git/commitdiff
spice: fix 32bit build
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 20 Jun 2014 06:12:44 +0000 (08:12 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 20 Jun 2014 15:22:07 +0000 (16:22 +0100)
Tested-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1403244764-8622-1-git-send-email-kraxel@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/display/qxl.c
ui/spice-display.c

index 736fd3c4e2a665222431e2cd1b8ce13144b6c897..d43aa49eb88f764353accdb2c94730c8c14693d2 100644 (file)
@@ -710,7 +710,7 @@ static void interface_release_resource(QXLInstance *sin,
 
     if (ext.group_id == MEMSLOT_GROUP_HOST) {
         /* host group -> vga mode update request */
-        QXLCommandExt *cmdext = (void *)(ext.info->id);
+        QXLCommandExt *cmdext = (void *)(intptr_t)(ext.info->id);
         SimpleSpiceUpdate *update;
         g_assert(cmdext->cmd.type == QXL_CMD_DRAW);
         update = container_of(cmdext, SimpleSpiceUpdate, ext);
index 03040b157fc87f2540b30f696dc1d3cc2504c6cf..66e25788ce9171c6462394dc02438c4776656404 100644 (file)
@@ -534,7 +534,7 @@ static void interface_release_resource(QXLInstance *sin,
     QXLCommandExt *ext;
 
     dprint(2, "%s/%d:\n", __func__, ssd->qxl.id);
-    ext = (void *)(rext.info->id);
+    ext = (void *)(intptr_t)(rext.info->id);
     switch (ext->cmd.type) {
     case QXL_CMD_DRAW:
         update = container_of(ext, SimpleSpiceUpdate, ext);