1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-02 14:15:46 +01:00

Fix the use of uinptr_t

Remove the additional cast to (int), as that makes no sense.
This commit is contained in:
Carlos R. Mafra
2009-09-14 15:57:52 +02:00
parent f6645ac564
commit 513a509096
12 changed files with 26 additions and 25 deletions

View File

@@ -36,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)(uintptr_t) d, (int)(uintptr_t) d, (int)(uintptr_t) d);
sprintf(buf, "%i - 0x%x - 0%o", (int)d, (int)d, (int)d);
WMSetLabelText(l, buf);
}

View File

@@ -134,7 +134,7 @@ void buttonClick(WMWidget * w, void *ptr)
{
char buffer[300];
if (SlideButton((int)(uintptr_t) ptr)) {
if (SlideButton((uintptr_t)ptr)) {
MoveCount++;
if (CheckWin()) {