From b52b292fa2c08c4a2db547a79bdb7a6d2004206a Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Wed, 9 Jun 2021 21:10:04 +0200 Subject: [PATCH] mac-capture: Fix compiler warnings --- plugins/mac-capture/mac-display-capture.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mac-capture/mac-display-capture.m b/plugins/mac-capture/mac-display-capture.m index 9ebd197c2..2987b438f 100644 --- a/plugins/mac-capture/mac-display-capture.m +++ b/plugins/mac-capture/mac-display-capture.m @@ -191,7 +191,7 @@ static bool init_display_stream(struct display_capture *dc) dc->frame = [dc->screen convertRectToBacking:dc->screen.frame]; NSNumber *screen_num = dc->screen.deviceDescription[@"NSScreenNumber"]; - CGDirectDisplayID disp_id = (CGDirectDisplayID)screen_num.pointerValue; + CGDirectDisplayID disp_id = screen_num.unsignedIntValue; NSDictionary *rect_dict = CFBridgingRelease(CGRectCreateDictionaryRepresentation(