[Spice-devel] [PATCH 2/9] qxl_mem.c: fix pointer arithmatic warning (-Wpointer-arith)

Alon Levy alevy at redhat.com
Fri Apr 29 02:36:55 PDT 2011


---
 src/qxl_mem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/qxl_mem.c b/src/qxl_mem.c
index bce80ad..705eb83 100644
--- a/src/qxl_mem.c
+++ b/src/qxl_mem.c
@@ -18,7 +18,7 @@ qxl_mem_create       (void                   *base,
     if (!mem)
 	goto out;
 
-    ErrorF ("memory space from %p to %p\n", base, base + n_bytes);
+    ErrorF ("memory space from %p to %p\n", base, (char *)base + n_bytes);
 
     mem->space = create_mspace_with_base (base, n_bytes, 0, NULL);
     
-- 
1.7.4.4



More information about the Spice-devel mailing list