From 4d87d619f3a968a64ef5a9677046189b3d99368b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 20 Aug 2009 10:19:34 +0200 Subject: [PATCH] Screen-win32: Kill warnings "signed and unsigned type in conditional expression" --- modules/access/screen/win32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/access/screen/win32.c b/modules/access/screen/win32.c index 01cac097c9..87eb6fbfb1 100644 --- a/modules/access/screen/win32.c +++ b/modules/access/screen/win32.c @@ -187,9 +187,9 @@ static block_t *CaptureBlockNew( demux_t *p_demux ) p_data->bmi.bmiHeader.biClrImportant = 0; i_val = var_CreateGetInteger( p_demux, "screen-fragment-size" ); - p_data->i_fragment_size = i_val > 0 ? i_val : p_sys->fmt.video.i_height; - p_data->i_fragment_size = i_val > p_sys->fmt.video.i_height ? - p_sys->fmt.video.i_height : + p_data->i_fragment_size = i_val > 0 ? i_val : (int)p_sys->fmt.video.i_height; + p_data->i_fragment_size = i_val > (int)p_sys->fmt.video.i_height ? + (int)p_sys->fmt.video.i_height : p_data->i_fragment_size; p_sys->f_fps *= (p_sys->fmt.video.i_height/p_data->i_fragment_size); p_sys->i_incr = 1000000 / p_sys->f_fps; -- 2.20.1