mirror of https://github.com/mpv-player/mpv
Fix a signedness issue that caused a warning to be wrongfully printed at runtime.
Patch by Adrian Stutz %adrian A sttz P ch% git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29218 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7a07a0fcb0
commit
424caeb920
|
@ -121,7 +121,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_
|
|||
|
||||
//init screen
|
||||
screen_array = [NSScreen screens];
|
||||
if(screen_id < [screen_array count])
|
||||
if(screen_id < (int)[screen_array count])
|
||||
{
|
||||
screen_handle = [screen_array objectAtIndex:(screen_id < 0 ? 0 : screen_id)];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue