mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
WINGs: Avoid cast from pointer to integer of different size compiler warnings.
This commit is contained in:
committed by
Carlos R. Mafra
parent
a47f07cfc3
commit
4a2e202af8
@@ -23,6 +23,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <WINGs/WINGs.h>
|
#include <WINGs/WINGs.h>
|
||||||
#include <WINGs/WUtil.h>
|
#include <WINGs/WUtil.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
void wAbort()
|
void wAbort()
|
||||||
{
|
{
|
||||||
@@ -35,7 +36,7 @@ void show(WMWidget * self, void *data)
|
|||||||
void *d;
|
void *d;
|
||||||
WMLabel *l = (WMLabel *) data;
|
WMLabel *l = (WMLabel *) data;
|
||||||
d = WMGetHangedData(self);
|
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);
|
WMSetLabelText(l, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user