mac-capture: Fix compiler warnings

This commit is contained in:
PatTheMav
2022-05-04 12:09:04 -04:00
committed by Ryan Foster
parent 5e13460fae
commit b52b292fa2
+1 -1
View File
@@ -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(