[Spice-devel] [PATCH xf86-video-qxl 09/13] spiceqxl_io_port: use pointer_to_u64 (fix warning)

Alon Levy alevy at redhat.com
Mon Apr 9 10:33:15 PDT 2012


---
 src/spiceqxl_io_port.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/spiceqxl_io_port.c b/src/spiceqxl_io_port.c
index 050e7b9..f599b4e 100644
--- a/src/spiceqxl_io_port.c
+++ b/src/spiceqxl_io_port.c
@@ -175,7 +175,7 @@ static void qxl_destroy_primary(qxl_screen_t *qxl)
 static void qxl_set_mode(qxl_screen_t *qxl, int modenr)
 {
     struct QXLMode *mode = qxl->modes + modenr;
-    uint64_t devmem = (uint64_t)qxl->ram;
+    uint64_t devmem = pointer_to_u64(qxl->ram);
     QXLSurfaceCreate surface = {
         .width      = mode->x_res,
         .height     = mode->y_res,
-- 
1.7.9.3



More information about the Spice-devel mailing list