From 4a2e202af8c0d9872ea8a7a66aa0f0f72fc40db5 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Thu, 30 Oct 2014 16:24:47 -0500 Subject: [PATCH] WINGs: Avoid cast from pointer to integer of different size compiler warnings. --- 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 4f4eaabb..a440a22c 100644 --- a/WINGs/Examples/fontl.c +++ b/WINGs/Examples/fontl.c @@ -23,6 +23,7 @@ #include #include #include +#include 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); } -- 2.11.4.GIT