1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-27 21:05:49 +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

@@ -686,8 +686,8 @@ static void typefaceClick(WMWidget * w, void *data)
WMClearList(panel->sizLs);
WM_ITERATE_ARRAY(face->sizes, size, i) {
if ((int)(uintptr_t) size != 0) {
sprintf(buffer, "%i", (int)(uintptr_t) size);
if ((uintptr_t)size != 0) {
sprintf(buffer, "%li", (uintptr_t)size);
WMAddListItem(panel->sizLs, buffer);
}
@@ -782,8 +782,8 @@ static void setFontPanelFontName(FontPanel * panel, char *family, char *style, d
WM_ITERATE_ARRAY(face->sizes, vsize, i) {
char buffer[32];
if ((int)(uintptr_t) vsize != 0) {
sprintf(buffer, "%i", (int)(uintptr_t) vsize);
if ((uintptr_t)vsize != 0) {
sprintf(buffer, "%li", (uintptr_t)vsize);
WMAddListItem(panel->sizLs, buffer);
}