summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-04-04 16:07:47 +0300
committerAlon Levy <alevy@redhat.com>2012-04-24 12:16:21 +0300
commit01f77c0c42e2b9058e48a9ac4ae171609119ce12 (patch)
tree5f33f526d3ec38d47957c6d5c1b6a6677274c163
parentaa6cf3db29886ce964b9a5793e7ed0af6f213b57 (diff)
spiceqxl_io_port: use pointer_to_u64 (fix warning)
-rw-r--r--src/spiceqxl_io_port.c2
1 files changed, 1 insertions, 1 deletions
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,