mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-16 15:45:50 +01:00
[mac] Fix C warnings
This commit is contained in:
parent
8ac69d6afd
commit
2fbc63b458
1 changed files with 2 additions and 2 deletions
|
|
@ -560,7 +560,7 @@ void ToggleFullscreen(struct Application *app) {
|
|||
}
|
||||
|
||||
bool isFullScreen(struct Application *app) {
|
||||
int mask = (int)msg_reg(app->mainWindow, s("styleMask"));
|
||||
long mask = (long)msg_reg(app->mainWindow, s("styleMask"));
|
||||
bool result = (mask & NSWindowStyleMaskFullscreen) == NSWindowStyleMaskFullscreen;
|
||||
return result;
|
||||
}
|
||||
|
|
@ -789,7 +789,7 @@ void MessageDialog(struct Application *app, char *callbackID, char *type, char *
|
|||
|
||||
// Run modal
|
||||
char *buttonPressed;
|
||||
int response = (int)msg_reg(alert, s("runModal"));
|
||||
long response = (long)msg_reg(alert, s("runModal"));
|
||||
if( response == NSAlertFirstButtonReturn ) {
|
||||
buttonPressed = button1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue