1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

WINGs: Avoid cast from pointer to integer of different size compiler warnings.

This commit is contained in:
Doug Torrance
2014-10-30 16:24:47 -05:00
committed by Carlos R. Mafra
parent a47f07cfc3
commit 4a2e202af8

View File

@@ -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);
}