Commit fc7795f1 authored by Damien Fouilleul's avatar Damien Fouilleul

log.c: fixed operator priorty when estimating message count

parent 056c9fe3
...@@ -92,7 +92,7 @@ unsigned libvlc_log_count( const libvlc_log_t *p_log, libvlc_exception_t *p_e ) ...@@ -92,7 +92,7 @@ unsigned libvlc_log_count( const libvlc_log_t *p_log, libvlc_exception_t *p_e )
int i_start = p_log->p_messages->i_start; int i_start = p_log->p_messages->i_start;
int i_stop = *(p_log->p_messages->pi_stop); int i_stop = *(p_log->p_messages->pi_stop);
return i_stop - i_start % VLC_MSG_QSIZE; return (i_stop - i_start) % VLC_MSG_QSIZE;
} }
RAISEZERO("Invalid log object!"); RAISEZERO("Invalid log object!");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment