]> git.sesse.net Git - vlc/commitdiff
log.c: fixed operator priorty when estimating message count
authorDamien Fouilleul <damienf@videolan.org>
Sat, 28 Oct 2006 23:41:06 +0000 (23:41 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Sat, 28 Oct 2006 23:41:06 +0000 (23:41 +0000)
src/control/log.c

index 93d000c62c4b905576bb2761d2a90a1e5065d430..0eeec2195be94e00272a353045dc3843286c42af 100644 (file)
@@ -91,8 +91,8 @@ 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_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!");
 }