mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-21 09: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:
@@ -118,13 +118,14 @@ static void textChangedObserver(void *observerData, WMNotification * notificatio
|
||||
char *text;
|
||||
WMList *list;
|
||||
int col = WMGetBrowserNumberOfColumns(panel->browser) - 1;
|
||||
int i, textEvent;
|
||||
int i;
|
||||
uintptr_t textEvent;
|
||||
|
||||
if (!(list = WMGetBrowserListInColumn(panel->browser, col)))
|
||||
return;
|
||||
|
||||
text = WMGetTextFieldText(panel->fileField);
|
||||
textEvent = (int)(uintptr_t) WMGetNotificationClientData(notification);
|
||||
textEvent = (uintptr_t)WMGetNotificationClientData(notification);
|
||||
|
||||
if (panel->flags.autoCompletion && textEvent != WMDeleteTextEvent)
|
||||
i = closestListItem(list, text, False);
|
||||
@@ -157,7 +158,7 @@ static void textEditedObserver(void *observerData, WMNotification * notification
|
||||
{
|
||||
W_FilePanel *panel = (W_FilePanel *) observerData;
|
||||
|
||||
if ((int)(uintptr_t) WMGetNotificationClientData(notification) == WMReturnTextMovement) {
|
||||
if ((uintptr_t)WMGetNotificationClientData(notification) == WMReturnTextMovement) {
|
||||
WMPerformButtonClick(panel->okButton);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user