From 2fbc63b458917dec770e24a442572bb117d6d7c7 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Tue, 29 Jun 2021 15:49:16 +1000 Subject: [PATCH] [mac] Fix C warnings --- v2/internal/ffenestri/ffenestri_darwin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/internal/ffenestri/ffenestri_darwin.c b/v2/internal/ffenestri/ffenestri_darwin.c index 356abdeb9..6e63f5ced 100644 --- a/v2/internal/ffenestri/ffenestri_darwin.c +++ b/v2/internal/ffenestri/ffenestri_darwin.c @@ -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; }