[PATCH 5/5] test: Fix compiler warning on 64-bit.

Eric Anholt eric at anholt.net
Mon Jan 27 11:36:09 PST 2014


We all know that XIDs are 32 bits, even if 32-bit headers call them
"long".
---
 test/hashtabletest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/hashtabletest.c b/test/hashtabletest.c
index ceadfa7..a37dfb5 100644
--- a/test/hashtabletest.c
+++ b/test/hashtabletest.c
@@ -12,7 +12,7 @@ static void
 print_xid(void* ptr, void* v)
 {
     XID *x = v;
-    printf("%ld", *x);
+    printf("%d", (uint32_t)*x);
 }
 
 static void
-- 
1.8.5.3



More information about the xorg-devel mailing list