---
 WINGs/Examples/fontl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/WINGs/Examples/fontl.c b/WINGs/Examples/fontl.c
index 4f4eaab..a440a22 100644
--- a/WINGs/Examples/fontl.c
+++ b/WINGs/Examples/fontl.c
@@ -23,6 +23,7 @@
 #include <stdint.h>
 #include <WINGs/WINGs.h>
 #include <WINGs/WUtil.h>
+#include <inttypes.h>
 
 void wAbort()
 {
@@ -35,7 +36,7 @@ void show(WMWidget * self, void *data)
        void *d;
        WMLabel *l = (WMLabel *) data;
        d = WMGetHangedData(self);
-       sprintf(buf, "%i -  0x%x - 0%o", (int)d, (int)d, (int)d);
+       sprintf(buf, "%"PRIiPTR" -  0x%"PRIxPTR" - 0%"PRIoPTR, (intptr_t) d, 
(intptr_t) d, (intptr_t) d);
        WMSetLabelText(l, buf);
 }
 
-- 
1.9.1


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to