mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-24 16:46:54 +01:00
Fix the use of uinptr_t
Remove the additional cast to (int), as that makes no sense.
This commit is contained in:
1 parent
f6645ac564
commit
513a509096
12 files changed
+26
-25
No files matched your search
+4
-4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user