macOS: Fix implicit integer downcast warnings

This commit is contained in:
Alex Szpakowski 2021-10-23 15:28:13 -03:00 committed by Ryan C. Gordon
parent d9d8f51eec
commit ba4ef461ea
2 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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);