From ba4ef461ea5ad10410247b5b8c81605895db7c4e Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 23 Oct 2021 15:28:13 -0300 Subject: [PATCH] macOS: Fix implicit integer downcast warnings --- src/video/cocoa/SDL_cocoawindow.h | 6 +++--- src/video/cocoa/SDL_cocoawindow.m | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/video/cocoa/SDL_cocoawindow.h b/src/video/cocoa/SDL_cocoawindow.h index 8dca3c0de..03034714d 100644 --- a/src/video/cocoa/SDL_cocoawindow.h +++ b/src/video/cocoa/SDL_cocoawindow.h @@ -48,7 +48,7 @@ typedef enum BOOL inFullscreenTransition; PendingWindowOperation pendingWindowOperation; BOOL isMoving; - int focusClickPending; + NSInteger focusClickPending; int pendingWindowWarpX, pendingWindowWarpY; BOOL isDragAreaRunning; } @@ -64,8 +64,8 @@ typedef enum -(BOOL) isMoving; -(BOOL) isMovingOrFocusClickPending; --(void) setFocusClickPending:(int) button; --(void) clearFocusClickPending:(int) button; +-(void) setFocusClickPending:(NSInteger) button; +-(void) clearFocusClickPending:(NSInteger) button; -(void) setPendingMoveX:(int)x Y:(int)y; -(void) windowDidFinishMoving; -(void) onMovingOrFocusClickPendingStateCleared; diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index 617799ddd..b2dfb8ebb 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -515,12 +515,12 @@ SetWindowStyle(SDL_Window * window, NSUInteger style) return isMoving || (focusClickPending != 0); } --(void) setFocusClickPending:(int) button +-(void) setFocusClickPending:(NSInteger) button { focusClickPending |= (1 << button); } --(void) clearFocusClickPending:(int) button +-(void) clearFocusClickPending:(NSInteger) button { if ((focusClickPending & (1 << button)) != 0) { focusClickPending &= ~(1 << button);