Преглед изворни кода

mac-capture: Fix compiler warnings

PatTheMav пре 4 година
родитељ
комит
b52b292fa2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plugins/mac-capture/mac-display-capture.m

+ 1 - 1
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(